fix(deploy): bind development gateways to loopback

This commit is contained in:
2026-08-25 15:16:41 +08:00
parent 44198866d9
commit fa92936406
2 changed files with 6 additions and 13 deletions
+2 -8
View File
@@ -37,10 +37,7 @@ case "$DEPLOY_ENV" in
esac
if [ "$DEPLOY_ENV" = "development" ]; then
case "$SERVICE" in
gateway|gateway-overseas) PUBLISHED_BIND_ADDRESS=0.0.0.0 ;;
*) PUBLISHED_BIND_ADDRESS=127.0.0.1 ;;
esac
PUBLISHED_BIND_ADDRESS=127.0.0.1
else
PUBLISHED_BIND_ADDRESS="${PUBLISHED_BIND_ADDRESS:-0.0.0.0}"
fi
@@ -433,10 +430,7 @@ export DEPLOY_ENV="$deploy_env"
export IMAGE_REPOSITORY="$image_repository"
export IMAGE_TAG="$image_tag"
if [ "$deploy_env" = "development" ]; then
case "$service" in
gateway|gateway-overseas) export PUBLISHED_BIND_ADDRESS=0.0.0.0 ;;
*) export PUBLISHED_BIND_ADDRESS=127.0.0.1 ;;
esac
export PUBLISHED_BIND_ADDRESS=127.0.0.1
else
export PUBLISHED_BIND_ADDRESS="${PUBLISHED_BIND_ADDRESS:-0.0.0.0}"
fi