diff --git a/hosts/c3d2-web/default.nix b/hosts/c3d2-web/default.nix index 0489849e..41b85ace 100644 --- a/hosts/c3d2-web/default.nix +++ b/hosts/c3d2-web/default.nix @@ -49,16 +49,16 @@ ''; locations = { # Mastodon - "~ ^/.well-known/webfinger".return = "301 https://c3d2.social/.well-known/webfinger?resource=acct%3ac3d2%40c3d2.social"; + "~ ^/\\.well-known/webfinger".return = "301 https://c3d2.social/.well-known/webfinger?resource=acct%3ac3d2%40c3d2.social"; # Matrix - "~ ^/.well-known/matrix/server" = { + "~ ^/\\.well-known/matrix/server" = { return = "200 '{\"m.server\": \"matrix.c3d2.de:443\"}'"; extraConfig = '' default_type application/json; ''; }; - "~ ^/.well-known/matrix/client" = { + "~ ^/\\.well-known/matrix/client" = { return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.c3d2.de\"}}'"; extraConfig = '' default_type application/json;