This commit is contained in:
martyTF 2026-05-14 00:11:47 +02:00
parent 351f911674
commit 97dd1f7d40

View file

@ -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;"