mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 monitor 设置 context-path 导致退出重新登录404问题
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
spring.boot.admin.client:
 | 
			
		||||
  # 增加客户端开关
 | 
			
		||||
  enabled: true
 | 
			
		||||
  url: http://localhost:9090/admin
 | 
			
		||||
  url: http://localhost:9090
 | 
			
		||||
  instance:
 | 
			
		||||
    service-host-type: IP
 | 
			
		||||
    metadata:
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ spring.servlet.multipart.location: /ruoyi/server/temp
 | 
			
		||||
spring.boot.admin.client:
 | 
			
		||||
  # 增加客户端开关
 | 
			
		||||
  enabled: true
 | 
			
		||||
  url: http://localhost:9090/admin
 | 
			
		||||
  url: http://localhost:9090
 | 
			
		||||
  instance:
 | 
			
		||||
    service-host-type: IP
 | 
			
		||||
    metadata:
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,6 @@ spring:
 | 
			
		||||
    admin:
 | 
			
		||||
      ui:
 | 
			
		||||
        title: RuoYi-Vue-Plus服务监控中心
 | 
			
		||||
      context-path: /admin
 | 
			
		||||
 | 
			
		||||
--- # Actuator 监控端点的配置项
 | 
			
		||||
management:
 | 
			
		||||
@@ -38,7 +37,7 @@ spring.boot.admin.client:
 | 
			
		||||
  # 增加客户端开关
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 设置 Spring Boot Admin Server 地址
 | 
			
		||||
  url: http://localhost:9090/admin
 | 
			
		||||
  url: http://localhost:9090
 | 
			
		||||
  instance:
 | 
			
		||||
    service-host-type: IP
 | 
			
		||||
    metadata:
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@ snail-job:
 | 
			
		||||
spring.boot.admin.client:
 | 
			
		||||
  # 增加客户端开关
 | 
			
		||||
  enabled: true
 | 
			
		||||
  url: http://localhost:9090/admin
 | 
			
		||||
  url: http://localhost:9090
 | 
			
		||||
  instance:
 | 
			
		||||
    service-host-type: IP
 | 
			
		||||
    metadata:
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@ snail-job:
 | 
			
		||||
spring.boot.admin.client:
 | 
			
		||||
  # 增加客户端开关
 | 
			
		||||
  enabled: true
 | 
			
		||||
  url: http://localhost:9090/admin
 | 
			
		||||
  url: http://localhost:9090
 | 
			
		||||
  instance:
 | 
			
		||||
    service-host-type: IP
 | 
			
		||||
    metadata:
 | 
			
		||||
 
 | 
			
		||||
@@ -96,7 +96,7 @@ http {
 | 
			
		||||
            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://monitor-admin/admin/;
 | 
			
		||||
            proxy_pass http://monitor-admin/;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        location /snail-job/ {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user