fix(rc06): resolve private participant health alias

This commit is contained in:
2026-10-07 01:44:39 +08:00
parent 998cce70b8
commit 379c6aa116
2 changed files with 6 additions and 0 deletions
@@ -187,6 +187,11 @@ def test_production_compose_and_edge_expose_only_the_hardened_facade() -> None:
assert edge["networks"]["default"]["aliases"] == [
"${RC06_AI_INTERNAL_SERVER_NAME:?RC06_AI_INTERNAL_SERVER_NAME is required}"
]
assert any(
item.startswith("${RC06_AI_INTERNAL_SERVER_NAME:")
and item.endswith(":127.0.0.1")
for item in edge["extra_hosts"]
)
nginx = (
REPO_ROOT / "yuqei-infra/nginx/templates/default.conf.template"
).read_text(encoding="utf-8")
@@ -167,6 +167,7 @@ services:
- ${BACKEND_TLS_TRUSTED_CA_FILE:?BACKEND_TLS_TRUSTED_CA_FILE is required}:/etc/nginx/trusted-ca.pem:ro
extra_hosts:
- "${BACKEND_SERVER_NAME:?BACKEND_SERVER_NAME is required}:127.0.0.1"
- "${RC06_AI_INTERNAL_SERVER_NAME:?RC06_AI_INTERNAL_SERVER_NAME is required}:127.0.0.1"
networks:
default:
aliases: