fix: prevent public status redirect loop

This commit is contained in:
2026-07-30 23:12:59 +08:00
parent 26cc814f3f
commit fe1442c2f2
3 changed files with 20 additions and 7 deletions
+10 -4
View File
@@ -20,10 +20,16 @@ location = /quant-os/status/index.html {
return 308 https://$host/quant-os/status/;
}
location ^~ /quant-os/status/ {
root /srv/www;
index index.html;
try_files $uri $uri/ =404;
location = /quant-os/status/ {
alias /srv/www/quant-os/status/index.html;
default_type text/html;
add_header Cache-Control "no-cache" always;
add_header X-Content-Type-Options "nosniff" always;
}
location ^~ /quant-os/status/ {
root /srv/www;
try_files $uri =404;
add_header Cache-Control "no-cache" always;
add_header X-Content-Type-Options "nosniff" always;
}