web: use regex's to have high priority
This commit is contained in:
parent
04f2bdf2f5
commit
8cfdf8124e
|
@ -48,14 +48,14 @@ in
|
||||||
'';
|
'';
|
||||||
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";
|
||||||
|
|
||||||
# SpaceAPI
|
# SpaceAPI
|
||||||
"/status.png".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/status.png";
|
"/status.png".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/status.png";
|
||||||
"/spaceapi.json".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/spaceapi.json";
|
"/spaceapi.json".proxyPass = "http://[${hostRegistry.spaceapi.ip6}]:3000/spaceapi.json";
|
||||||
|
|
||||||
# WKD: Web Key Directory for PGP Keys
|
# WKD: Web Key Directory for PGP Keys
|
||||||
"/openpgp" = {
|
"~ ^/openpgp" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autoindex off;
|
autoindex off;
|
||||||
default_type "application/octet-stream";
|
default_type "application/octet-stream";
|
||||||
|
@ -78,7 +78,7 @@ in
|
||||||
rewrite ^/$ /2023/ redirect;
|
rewrite ^/$ /2023/ redirect;
|
||||||
'';
|
'';
|
||||||
# Mastodon
|
# 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" = {
|
"autotopia.c3d2.de" = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user