web: use regex's to have high priority
This commit is contained in:
parent
04f2bdf2f5
commit
8cfdf8124e
|
@ -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" = {
|
||||
|
|
Loading…
Reference in New Issue