Skip to content

Commit

Permalink
matrix-element: serve from all servers with sufficient storage
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed May 2, 2024
1 parent f83e5e7 commit d5a83b0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dns/domains/lantian.pub.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ let
{
recordType = "CNAME";
name = "element";
target = "v-ps-fal";
# GeoDNS target for servers with sufficient storage
target = "tools";
}
{
recordType = "CNAME";
Expand Down
1 change: 0 additions & 1 deletion hosts/v-ps-fal/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
../../nixos/optional-apps/glauth.nix
../../nixos/optional-apps/keycloak
../../nixos/optional-apps/lemmy.nix
../../nixos/optional-apps/matrix-element
../../nixos/optional-apps/matrix-synapse.nix
../../nixos/optional-apps/miniflux.nix
../../nixos/optional-apps/netbox.nix
Expand Down
1 change: 1 addition & 0 deletions nixos/common-apps/nginx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
./oauth2-proxy.nix
./proxy.nix
./testssl.nix
./vhost-matrix-element
./vhost-options
./vhost-tools
./vhosts.nix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ let
}
);
in
{
lib.mkIf (!(LT.this.hasTag LT.tags.low-disk)) {
networking.hosts."127.0.0.1" = [ "element.lantian.pub" ];

lantian.nginxVhosts."element.lantian.pub" = {
listenHTTP.enable = true;
root = builtins.toString (LT.nginx.compressStaticAssets pkgs.element-web);
Expand Down

0 comments on commit d5a83b0

Please sign in to comment.