c3d2-web: escape regex dots

This commit is contained in:
Sandro - 2024-01-08 15:16:17 +01:00
parent 69a86e02f9
commit accbea1f01
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -49,16 +49,16 @@
''; '';
locations = { locations = {
# Mastodon # 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 # Matrix
"~ ^/.well-known/matrix/server" = { "~ ^/\\.well-known/matrix/server" = {
return = "200 '{\"m.server\": \"matrix.c3d2.de:443\"}'"; return = "200 '{\"m.server\": \"matrix.c3d2.de:443\"}'";
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;
''; '';
}; };
"~ ^/.well-known/matrix/client" = { "~ ^/\\.well-known/matrix/client" = {
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.c3d2.de\"}}'"; return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.c3d2.de\"}}'";
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;