diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix index da49812..8ca76fb 100644 --- a/modules/services/server/matrix.nix +++ b/modules/services/server/matrix.nix @@ -29,15 +29,16 @@ in { forceSSL = true; locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; + locations."/_matrix".proxyPass = "http://localhost:8008"; }; "${fqdn}" = { enableACME = true; forceSSL = true; + locations."/_matrix".proxyPass = "http://localhost:8008"; + locations."/_synapse/client".proxyPass = "http://localhost:8008"; locations."/".extraConfig = '' return 404; ''; - locations."/_matrix".proxyPass = "http://[::1]:8008"; - locations."/_synapse/client".proxyPass = "http://[::1]:8008"; }; # "element.${config.networking.domain}" = { # enableACME = true;