mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-04-27 01:40:50 +00:00
34 lines
786 B
YAML
34 lines
786 B
YAML
management: #开启SpringBoot Admin的监控
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: '*'
|
|
endpoint:
|
|
health:
|
|
show-details: always
|
|
|
|
server:
|
|
port: 527
|
|
spring:
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: 47.106.243.172:8848
|
|
namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
|
gateway:
|
|
routes:
|
|
- id: user-route
|
|
uri: lb://user-service
|
|
predicates:
|
|
- Path=/api/user/**
|
|
filters:
|
|
- RewritePath=/api/(?<segment>.*), /$\{segment}
|
|
- id: monitor-route
|
|
uri: lb://novel-monitor
|
|
predicates:
|
|
- Path=/monitor/**
|
|
filters:
|
|
- RewritePath=/monitor/(?<segment>.*), /$\{segment}
|
|
|
|
|
|
|