From fd27972a9106feaf559a03d9f28e12e670782a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Thu, 5 Jun 2025 15:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start/hhzadmin.sh | 3 +-- start/oidcservice.sh | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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}"