diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index 83a55000..0900dd3c 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -169,18 +169,18 @@ in { }; "/_matrix/media" = mediaProxyConfig; "/_matrix/client/v3/logout" = mediaProxyConfig; - "/.well-known/matrix/server" = { + locations."/.well-known/matrix/server" = { extraConfig = '' return 200 '{ "m.server": "matrix.chir.rs:443" }'; ''; }; - "/.well-known/matrix/client" = { + locations."/.well-known/matrix/client" = { extraConfig = '' add_header Access-Control-Allow-Origin '*'; return 200 '{ "m.homeserver": { "base_url": "https://matrix.chir.rs" } }'; ''; }; - "/_synapse/metrics" = { + locations."/_synapse/metrics" = { extraConfig = '' return 404 'Not found'; '';