diff --git a/modules/services/matrix.nix b/modules/services/matrix.nix index d9095f95fb054365b94ad28502247ed9531d6dd8..8d46c6d370fdbeb008c04f52713fabea71baea81 100644 --- a/modules/services/matrix.nix +++ b/modules/services/matrix.nix @@ -176,5 +176,14 @@ proxy_set_header Host $host; ''; }; + + locations."/_synapse/admin" = { + proxyPass = "http://localhost:8008"; + extraConfig = '' + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; + ''; + }; }; }