c3d2-web: escape regex dots
This commit is contained in:
parent
69a86e02f9
commit
accbea1f01
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user