feat: establish Quant OS production-80 architecture
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# 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;
|
||||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
add_header Cache-Control "no-cache" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
}
|
||||
Reference in New Issue
Block a user