mystyle-cloud-parent/mystyle-cloud-gateway/src/main/resources/application.yml

40 lines
874 B
YAML

server:
port: 5000
spring:
application:
name: mystyle-cloud-gateway
zipkin:
sender:
type: web
base-url: http://localhost:9411/
service:
name: mystyle-cloud-gateway
sleuth:
sampler:
probability: 1
cloud:
sentinel:
transport:
port: 15000
dashboard: localhost:8748
nacos:
discovery:
server-addr: 127.0.0.1:8848
gateway:
discovery:
locator:
enabled: false
lowerCaseServiceId: true
routes:
- id: mystyle-cloud-file
uri: lb://mystyle-cloud-file
predicates:
- Path=/mystyle-file/**
filters:
- StripPrefix=1
- id: mystyle-cloud-user
uri: lb://mystyle-cloud-user
predicates:
- Path=/mystyle-user/**
filters:
- StripPrefix=1