Files
JayuCloud/YumiNail-Gateway/src/main/resources/application.yaml
T

33 lines
657 B
YAML

server:
port: 8888
spring:
profiles:
active: dev
cloud:
gateway:
discovery:
locator:
enabled: true # 开启从注册中心动态创建路由的功能
lower-case-service-id: true # 使用小写服务名
routes:
- id: yuminail-core-route
uri: lb://yuminail-core
predicates:
- Path=/core/**
filters:
- StripPrefix=1
# 自定义配置:白名单
yuminail:
gateway:
whitelist:
- /auth/login
- /auth/register
- /health/check
- /doc.html
- /webjars/**
- /v2/api-docs/**
- /swagger-resources/**