fix: prevent public status redirect loop
This commit is contained in:
@@ -128,8 +128,15 @@ class ProjectScaffoldTests(unittest.TestCase):
|
||||
config = (
|
||||
PROJECT / "ops/nginx/quant-os-static.conf"
|
||||
).read_text(encoding="utf-8")
|
||||
self.assertIn("location = /quant-os/status/ {", config)
|
||||
self.assertIn(
|
||||
"alias /srv/www/quant-os/status/index.html;",
|
||||
config,
|
||||
)
|
||||
self.assertIn("location ^~ /quant-os/status/", config)
|
||||
self.assertIn("root /srv/www;", config)
|
||||
self.assertNotIn("index index.html;", config)
|
||||
self.assertNotIn("try_files $uri $uri/", config)
|
||||
self.assertIn(
|
||||
"https://$host/quant-os/status/",
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user