All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.gateway.application.yml.ftl Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
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/**




© 2015 - 2024 Weber Informatics LLC | Privacy Policy