templates.gateway.application.yml.ftl Maven / Gradle / Ivy
server:
port: 8090
servlet:
context-path: /
#log
logging:
level:
io.swagger.*: error
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
path: ./log
# 内部配置
yesaiot:
#请求合法时间 ms
request-legal-time: 0
spring:
main:
web-application-type: reactive
cloud:
gateway:
default-filters:
- DedupeResponseHeader=Access-Control-Allow-Origin
globalcors:
corsConfigurations:
'[/**]':
allowedOriginPatterns: "*"
allowed-methods: "*"
allowed-headers: "*"
allow-credentials: true
exposedHeaders: "Content-Disposition,Content-Type,Cache-Control"
locator:
enabled: true
routes:
#${projectName}-service 模块
- id: farm-service
uri: lb://${projectName}-service
predicates:
- Path=/api/**