| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #端口号
- server:
- port: 80
- #port: 443
- #ssl证书相关配置
- #ssl:
- #key-store: classpath:key_2019/3070974_prodog.leanwo.com.pfx
- #key-store-password: E70iVODH
- #key-store-type: PKCS12
- #是否启用压缩
- compression:
- enabled: true
- mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,font/woff2
- spring:
- application:
- # 应用名称,会在Eureka中作为服务的id标识(serviceId)
- name: gateway-server
- # 修改文件上传大小的限制
- servlet:
- multipart:
- # 单个文件大小
- maxFileSize: 100MB
- # 总文件大小
- maxRequestSize: 200MB
-
- cloud:
- gateway:
- discovery:
- locator:
- enabled: true
- routes:
- - id: application_server
- uri: lb://prodog-server
- predicates:
- - Path=/api/**
- - id: dingtalk_server
- uri: lb://dingtalk-server
- predicates:
- - Path=/dingTalkApi/**
- filters:
- - StripPrefix=1
- - id: workflow_server
- uri: lb://workflow-server
- predicates:
- - Path=/workflow-app/**
- # 正式的环境去掉该配置
- - id: pc_client
- uri: http://127.0.0.1:8081
- predicates:
- - Path=/pcapp/**
- # 正式的环境去掉该配置
- - id: pc_client_static
- uri: http://127.0.0.1:8081
- predicates:
- - Path=/static/**
- # 正式的环境去掉该配置
- - id: wms_client_static
- uri: http://127.0.0.1:8083
- predicates:
- - Path=/static-wms-app/**
- # 正式的环境去掉该配置
- - id: wms_client
- uri: http://127.0.0.1:8083
- predicates:
- - Path=/wmsapp/**
- # 正式的环境去掉该配置
- - id: eam_client
- uri: http://127.0.0.1:8082
- predicates:
- - Path=/eamapp/**
- # 文件服务器
- - id: file_server
- uri: lb://file-server
- predicates:
- - Path=/**
-
-
- #Eureka Server服务器地址.
- eureka:
- instance:
- prefer-ip-address: true
- #Eureka客户端向服务端发送心跳的时间间隔,单位为秒(客户端告诉服务端自己会按照该规则),默认30
- lease-renewal-interval-in-seconds: 5
- #Eureka服务端在收到最后一次心跳之后等待的时间上限,单位为秒,超过则剔除(客户端告诉服务端按照此规则等待自己),默认90
- lease-expiration-duration-in-seconds: 10
- client:
- fetch-registry: true
- register-with-eureka: true
- serviceUrl:
- defaultZone: http://localhost:88/eureka/
-
-
- ribbon:
- #请求处理的超时时间
- ReadTimeout: 12000000
- #请求连接的超时时间
- ConnectTimeout: 3000000
|