From e72415754a316769cdf033fd629bbff6ddd99176 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 5 Mar 2026 09:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/conf/nginx.conf | 8 ++------ docker/ruoyi/modules/device/dockerfile | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docker/nginx/conf/nginx.conf b/docker/nginx/conf/nginx.conf index 1e1896b..af69cf6 100644 --- a/docker/nginx/conf/nginx.conf +++ b/docker/nginx/conf/nginx.conf @@ -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; } } -} \ No newline at end of file +} diff --git a/docker/ruoyi/modules/device/dockerfile b/docker/ruoyi/modules/device/dockerfile index 64c9778..cd8fba0 100644 --- a/docker/ruoyi/modules/device/dockerfile +++ b/docker/ruoyi/modules/device/dockerfile @@ -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"]