c3d2-web: add /schule/

This commit is contained in:
Sandro - 2024-03-13 20:31:12 +01:00
parent 111e78de24
commit 3e4b797dd5
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 15 additions and 9 deletions

View File

@ -60,24 +60,30 @@
}; };
"~ ^/\\.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 = /* nginx */ ''
default_type application/json; default_type application/json;
add_header "Access-Control-Allow-Origin" *; add_header "Access-Control-Allow-Origin" *;
''; '';
}; };
"~ ^/schule$".return = "307 /schule/";
"/schule/" = {
alias = "/var/www/cms-slides/";
extraConfig = ''
index index.html;
'';
};
# 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"; add_header Access-Control-Allow-Origin "* always";
add_header Access-Control-Allow-Origin "* always"; '';
'';
};
}; };
}; };
@ -89,7 +95,7 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = "/var/www/c3d2/datenspuren"; root = "/var/www/c3d2/datenspuren";
extraConfig = '' extraConfig = /* nginx */ ''
index index.html; index index.html;
rewrite ^/$ /2024/ redirect; rewrite ^/$ /2024/ redirect;
''; '';