security: 端口绑定限制为 127.0.0.1 (API/Web)
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 205h32m24s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 205h32m34s

This commit is contained in:
CI Test
2026-06-30 22:59:32 +08:00
parent ce9c4f041c
commit 4b8605c679
+2 -2
View File
@@ -52,7 +52,7 @@ services:
# Staging: 8000 -> 8000
# Production: 8001 -> 8000
ports:
- "${API_PORT:-8000}:8000"
- "127.0.0.1:${API_PORT:-8000}:8000"
# 共享生成文件目录
volumes:
@@ -140,7 +140,7 @@ services:
# Staging: 3001 -> 80
# Production: 3002 -> 80 (通过 Nginx 反向代理)
ports:
- "${WEB_PORT:-3001}:80"
- "127.0.0.1:${WEB_PORT:-3001}:80"
networks:
- xiaoxia-net