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

49 lines
1.2 KiB
YAML
Raw Normal View History

2021-10-30 10:08:08 +00:00
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:
2021-11-04 10:41:02 +00:00
globalcors:
corsConfigurations:
'[/**]': # 匹配所有请求
allowedOrigins: "*" #跨域处理 允许所有的域
allowedMethods: # 支持的方法
- GET
- POST
- PUT
- DELETE
2021-10-30 10:08:08 +00:00
discovery:
locator:
enabled: false
lowerCaseServiceId: true
routes:
2021-11-04 10:41:02 +00:00
- id: mystyle-cloud-oauth
uri: lb://mystyle-cloud-oauth
2021-10-30 10:08:08 +00:00
predicates:
2021-11-04 10:41:02 +00:00
- Path=/mystyle-cloud-oauth/**
2021-10-30 10:08:08 +00:00
filters:
- StripPrefix=1
2021-11-04 10:41:02 +00:00
- id: mystyle-cloud-admin-manager
uri: lb://mystyle-cloud-admin-manager
2021-10-30 10:08:08 +00:00
predicates:
2021-11-04 10:41:02 +00:00
- Path=/mystyle-cloud-admin-manager/**
2021-10-30 10:08:08 +00:00
filters:
- StripPrefix=1