From 4b8605c679b85d66dc30808d4d69ac70b6ee867c Mon Sep 17 00:00:00 2001 From: CI Test Date: Tue, 30 Jun 2026 22:59:32 +0800 Subject: [PATCH] =?UTF-8?q?security:=20=E7=AB=AF=E5=8F=A3=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E9=99=90=E5=88=B6=E4=B8=BA=20127.0.0.1=20(API/Web)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/docker/compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/docker/compose.yml b/infra/docker/compose.yml index d90fbbcd8..77803efc1 100644 --- a/infra/docker/compose.yml +++ b/infra/docker/compose.yml @@ -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 -- 2.54.0