fix: allow Docker API hostname in production

This commit is contained in:
Jesse_Chen
2026-07-17 12:27:01 +08:00
parent 862559cf71
commit ca427f17c5
4 changed files with 52 additions and 3 deletions
+6
View File
@@ -23,3 +23,9 @@ def test_web_image_copies_postcss_config_before_building_frontend() -> None:
assert config_copy in web
assert web.index(config_copy) < web.index("RUN npm run build")
def test_server_compose_allows_only_the_internal_api_hostname() -> None:
compose = (ROOT / "deploy" / "docker-compose.server.yml").read_text(encoding="utf-8")
assert "JYOTISH_ALLOWED_HOSTS: localhost,127.0.0.1,::1,api" in compose