diff --git a/modules/server/social/synapse.nix b/modules/server/social/synapse.nix index 928e968..8b073fe 100644 --- a/modules/server/social/synapse.nix +++ b/modules/server/social/synapse.nix @@ -68,7 +68,7 @@ in }; listeners = [ { - port = config.server.synapse.port; + port = config.server.social.synapse.port; bind_addresses = [ "127.0.0.1" ]; type = "http"; tls = false; @@ -94,12 +94,12 @@ in locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; }; - "${config.server.synapse.subdomain}.${config.networking.domain}" = { + "${config.server.social.synapse.subdomain}.${config.networking.domain}" = { enableACME = true; forceSSL = true; locations = { "~ ^(/_matrix|/_synapse/client|/)" = { - proxyPass = "http://127.0.0.1:${toString config.server.synapse.port}"; + proxyPass = "http://127.0.0.1:${toString config.server.social.synapse.port}"; proxyWebsockets = true; extraConfig = "proxy_set_header X-Forwarded-For $remote_addr;"