mirror of
https://gitee.com/novel_dev_team/novel-cloud
synced 2026-07-20 17:55:01 +08:00
模块构建完成
This commit is contained in:
34
doc/yml/novel-gateway/novel-gateway.yml
Normal file
34
doc/yml/novel-gateway/novel-gateway.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user