fix: serve canonical status index directly

This commit is contained in:
2026-07-30 23:15:40 +08:00
parent fe1442c2f2
commit 9cb1daea1a
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ location = /quant-os/status/index.html {
} }
location = /quant-os/status/ { location = /quant-os/status/ {
alias /srv/www/quant-os/status/index.html; root /srv/www;
rewrite ^ /quant-os/status/index.html break;
default_type text/html; default_type text/html;
add_header Cache-Control "no-cache" always; add_header Cache-Control "no-cache" always;
add_header X-Content-Type-Options "nosniff" always; add_header X-Content-Type-Options "nosniff" always;
+3 -3
View File
@@ -1475,14 +1475,14 @@ window.QUANT_OS_PUBLIC_STATUS = {
"provenance": { "provenance": {
"baselineConfig": "configs/baseline.json", "baselineConfig": "configs/baseline.json",
"bundleManifest": "dist/bundle_manifest.json", "bundleManifest": "dist/bundle_manifest.json",
"payloadSha256": "d2acea085dbb251b317071c11d2eeb1e778c9246f9b390e58cb137d84dae241c", "payloadSha256": "4f3cbc98bd700c905c609eae3e0c398514c9fb42487e82ed90b90e534f965815",
"payloadSha256Semantics": "SHA-256 of canonical payload before payloadSha256 is added.", "payloadSha256Semantics": "SHA-256 of canonical payload before payloadSha256 is added.",
"platformMatrix": "docs/PLATFORM_MATRIX.md", "platformMatrix": "docs/PLATFORM_MATRIX.md",
"production80Assessment": "profiles/production-80/current-assessment.json", "production80Assessment": "profiles/production-80/current-assessment.json",
"production80Standard": "profiles/production-80/standard.json", "production80Standard": "profiles/production-80/standard.json",
"releaseReachability": "releases/quant60-research-candidate-v1/reachability.json", "releaseReachability": "releases/quant60-research-candidate-v1/reachability.json",
"scorecard": "gate_scorecard.json", "scorecard": "gate_scorecard.json",
"sourceSetSha256": "66699c1afb92b39abc2f41fdbe43578d9b507215dc0f28914953dc73edd3463f", "sourceSetSha256": "c971896dfe8406c12100136ad767d289809190c50f87abd072a428f7c40a73e2",
"sources": [ "sources": [
{ {
"path": "gate_scorecard.json", "path": "gate_scorecard.json",
@@ -1582,7 +1582,7 @@ window.QUANT_OS_PUBLIC_STATUS = {
}, },
{ {
"path": "ops/nginx/quant-os-static.conf", "path": "ops/nginx/quant-os-static.conf",
"sha256": "9fcf5f96ad3807060bd1529124dcbfda4e10c3ef93947434ba9a106bbe2a392e" "sha256": "2871fd13cc4b4828f82e59c67284e765d69422b404b35d95d02c396b596365d3"
}, },
{ {
"path": "ops/nginx/quant-os-legacy-redirects-302.conf", "path": "ops/nginx/quant-os-legacy-redirects-302.conf",
+1 -1
View File
@@ -130,7 +130,7 @@ class ProjectScaffoldTests(unittest.TestCase):
).read_text(encoding="utf-8") ).read_text(encoding="utf-8")
self.assertIn("location = /quant-os/status/ {", config) self.assertIn("location = /quant-os/status/ {", config)
self.assertIn( self.assertIn(
"alias /srv/www/quant-os/status/index.html;", "rewrite ^ /quant-os/status/index.html break;",
config, config,
) )
self.assertIn("location ^~ /quant-os/status/", config) self.assertIn("location ^~ /quant-os/status/", config)