37 lines
1000 B
Plaintext
37 lines
1000 B
Plaintext
# Quant OS public status routes.
|
|
#
|
|
# This snippet belongs inside the gomars.fun HTTPS server block. The release
|
|
# payload is published under /srv/www/quant-os/releases/<git-sha>/ and the
|
|
# /srv/www/quant-os/status symlink is switched atomically after verification.
|
|
|
|
location = /quant-os {
|
|
return 308 https://$host/quant-os/status/;
|
|
}
|
|
|
|
location = /quant-os/ {
|
|
return 308 https://$host/quant-os/status/;
|
|
}
|
|
|
|
location = /quant-os/status {
|
|
return 308 https://$host/quant-os/status/;
|
|
}
|
|
|
|
location = /quant-os/status/index.html {
|
|
return 308 https://$host/quant-os/status/;
|
|
}
|
|
|
|
location = /quant-os/status/ {
|
|
root /srv/www;
|
|
rewrite ^ /quant-os/status/index.html break;
|
|
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;
|
|
}
|