This commit is contained in:
孙小云 2025-06-11 19:42:50 +08:00
parent b739f870fc
commit a2ff1befdf
4 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@
location /api {
proxy_pass http://gatewayService;
proxy_pass http://HOSTNAME:7011;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@ -46,7 +46,7 @@
}
location /hhz {
proxy_pass http://gatewayService/hhz;
proxy_pass http://HOSTNAMEIP:7011/hhz;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@ -37,6 +37,7 @@ echo "正在启动 ${GATEWAY_NAME} 容器..."
docker run --pull always -d \
--name ${GATEWAY_NAME} \
--network ${NETWORK} \
-p 7011:7011 \
--add-host ${OIDC_SERVER_DOMAIN}:host-gateway \
--env TZ=Asia/Shanghai \
--env SPRING_CONFIG_LOCATION=file:/data/java/tuoheng/application.yml \

View File

@ -12,6 +12,7 @@ fi
DOCKER_RUN_CMD="docker run --pull always -d \
--name ${NGINX_NAME} \
--network ${NETWORK} \
--add-host HOSTNAMEIP:host-gateway \
-p ${NGINX_HTTP_PORT}:80 \
-p ${NGINX_HTTPS_PORT}:443 \
--env TZ=Asia/Shanghai \