fix 修复 monitor 设置 context-path 导致退出重新登录404问题

This commit is contained in:
疯狂的狮子Li 2024-11-22 17:54:16 +08:00
parent cd08f66c59
commit d194b39e57
6 changed files with 6 additions and 7 deletions

View File

@ -2,7 +2,7 @@
spring.boot.admin.client: spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
enabled: true enabled: true
url: http://localhost:9090/admin url: http://localhost:9090
instance: instance:
service-host-type: IP service-host-type: IP
metadata: metadata:

View File

@ -5,7 +5,7 @@ spring.servlet.multipart.location: /ruoyi/server/temp
spring.boot.admin.client: spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
enabled: true enabled: true
url: http://localhost:9090/admin url: http://localhost:9090
instance: instance:
service-host-type: IP service-host-type: IP
metadata: metadata:

View File

@ -19,7 +19,6 @@ spring:
admin: admin:
ui: ui:
title: RuoYi-Vue-Plus服务监控中心 title: RuoYi-Vue-Plus服务监控中心
context-path: /admin
--- # Actuator 监控端点的配置项 --- # Actuator 监控端点的配置项
management: management:
@ -38,7 +37,7 @@ spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
enabled: true enabled: true
# 设置 Spring Boot Admin Server 地址 # 设置 Spring Boot Admin Server 地址
url: http://localhost:9090/admin url: http://localhost:9090
instance: instance:
service-host-type: IP service-host-type: IP
metadata: metadata:

View File

@ -40,7 +40,7 @@ snail-job:
spring.boot.admin.client: spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
enabled: true enabled: true
url: http://localhost:9090/admin url: http://localhost:9090
instance: instance:
service-host-type: IP service-host-type: IP
metadata: metadata:

View File

@ -40,7 +40,7 @@ snail-job:
spring.boot.admin.client: spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
enabled: true enabled: true
url: http://localhost:9090/admin url: http://localhost:9090
instance: instance:
service-host-type: IP service-host-type: IP
metadata: metadata:

View File

@ -96,7 +96,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://monitor-admin/admin/; proxy_pass http://monitor-admin/;
} }
location /snail-job/ { location /snail-job/ {