From d9f63f46ba1ba3f83ecb9c075d15fbfbbd732620 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Wed, 28 Dec 2022 21:34:02 +0100 Subject: [PATCH] services: nginx redirect for matrix --- modules/services/server/matrix.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;