This commit is contained in:
孙小云 2025-06-11 19:45:24 +08:00
parent a2ff1befdf
commit 58f6c247d2
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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