diff --git a/start/hhzadmin.sh b/start/hhzadmin.sh index 8affc2c..08d4a11 100755 --- a/start/hhzadmin.sh +++ b/start/hhzadmin.sh @@ -4,7 +4,6 @@ source ../environment.sh NGINX_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${NGINX_NAME}) if [ -z "$NGINX_IP" ]; then echo "错误:无法获取 ${NGINX_NAME} 容器的 IP 地址" - exit 1 fi echo "获取到 ${NGINX_NAME} 容器的 IP 地址: ${NGINX_IP}" @@ -45,7 +44,7 @@ docker run --pull always -d \ --env TUOHENG_DSP_CALLBACK_URL=https://${HHZ_DOMAIN_FULL}/hhz/admin/dsp/{requestId}/callback \ --env TUOHENG_OIDC-URL=https://${OIDC_ADMIN_DOMAIN_FULL} \ --env TZ=Asia/Shanghai \ ---add-host ${OIDC_ADMIN_DOMAIN}:${NGINX_IP} \ +--add-host ${OIDC_ADMIN_DOMAIN}:host-gateway \ --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ --memory ${HHZ_ADMIN_MEMORY} \ --restart unless-stopped \ diff --git a/start/oidcservice.sh b/start/oidcservice.sh index 582ca45..40ee40b 100755 --- a/start/oidcservice.sh +++ b/start/oidcservice.sh @@ -4,7 +4,6 @@ source ../environment.sh NGINX_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${NGINX_NAME}) if [ -z "$NGINX_IP" ]; then echo "错误:无法获取 ${NGINX_NAME} 容器的 IP 地址" - exit 1 fi echo "获取到 ${NGINX_NAME} 容器的 IP 地址: ${NGINX_IP}"