修改代码
This commit is contained in:
parent
3c550c72ea
commit
e72415754a
|
|
@ -20,21 +20,17 @@ http {
|
|||
index index.html index.htm;
|
||||
}
|
||||
|
||||
|
||||
location /prod-api/{
|
||||
location /prod-api/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://ruoyi-gateway:8080/;
|
||||
|
||||
# 支持长时间命令执行
|
||||
proxy_connect_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
if ($uri ~ "/actuator") {
|
||||
return 403;
|
||||
}
|
||||
|
|
@ -44,4 +40,4 @@ http {
|
|||
root html;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ WORKDIR /home/ruoyi
|
|||
# 复制jar文件到路径
|
||||
COPY ./jar/tuoheng-device.jar /home/ruoyi/tuoheng-device.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","tuoheng-device.jar"]
|
||||
ENTRYPOINT ["java","-jar","tuoheng-device.jar","--spring.flyway.validate-on-migrate=false"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue