feat: establish Quant OS production-80 architecture

This commit is contained in:
2026-07-30 22:59:25 +08:00
parent 919c64c679
commit 26cc814f3f
67 changed files with 7005 additions and 142 deletions
@@ -0,0 +1,26 @@
# Temporary compatibility redirects. Install only after the new canonical
# route has passed public verification. Keep these as 302 during observation.
location = /quants-strategies/quant-os {
return 302 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/ {
return 302 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status {
return 302 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/ {
return 302 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/index.html {
return 302 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/status-data.js {
return 302 https://$host/quant-os/status/status-data.js;
}
@@ -0,0 +1,26 @@
# Stable compatibility redirects. Replace the temporary 302 include with this
# file only after an observation period and an explicit production change.
location = /quants-strategies/quant-os {
return 308 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/ {
return 308 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status {
return 308 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/ {
return 308 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/index.html {
return 308 https://$host/quant-os/status/;
}
location = /quants-strategies/quant-os/status/status-data.js {
return 308 https://$host/quant-os/status/status-data.js;
}
+29
View File
@@ -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;
}