This commit is contained in:
parent
b739f870fc
commit
a2ff1befdf
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue