web: use regex's to have high priority

This commit is contained in:
Sandro - 2023-03-25 16:05:01 +01:00
parent 04f2bdf2f5
commit 8cfdf8124e
1 changed files with 3 additions and 3 deletions

View File

@ -48,14 +48,14 @@ in
'';
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";
# SpaceAPI
"/status.png".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/status.png";
"/spaceapi.json".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/spaceapi.json";
# WKD: Web Key Directory for PGP Keys
"/openpgp" = {
"~ ^/openpgp" = {
extraConfig = ''
autoindex off;
default_type "application/octet-stream";
@ -78,7 +78,7 @@ in
rewrite ^/$ /2023/ redirect;
'';
# Mastodon
locations."/.well-known/webfinger".return = "301 https://c3d2.social/.well-known/webfinger?resource=acct%3adatenspuren%40c3d2.social";
locations."~ ^/.well-known/webfinger".return = "301 https://c3d2.social/.well-known/webfinger?resource=acct%3adatenspuren%40c3d2.social";
};
"autotopia.c3d2.de" = {