feat: allow configurable loopback backend binding

This commit is contained in:
2026-08-04 15:36:01 +08:00
parent 4fc755d558
commit 11191a6e1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ def test_compose_does_not_embed_password_or_net_admin_capability():
assert "POSTGRES_PASSWORD=pingwatch123" not in compose assert "POSTGRES_PASSWORD=pingwatch123" not in compose
assert "NET_ADMIN" not in compose assert "NET_ADMIN" not in compose
assert "127.0.0.1:8001:8000" in compose assert "PINGWATCH_BACKEND_BIND" in compose
def test_oauth_client_does_not_disable_tls_verification(): def test_oauth_client_does_not_disable_tls_verification():
+1 -1
View File
@@ -8,7 +8,7 @@ services:
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
ports: ports:
- "127.0.0.1:8001:8000" - "${PINGWATCH_BACKEND_BIND:-127.0.0.1:8001}:8000"
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy