Application.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #端口号
  2. server:
  3. port: 80
  4. #port: 443
  5. #ssl证书相关配置
  6. #ssl:
  7. #key-store: classpath:key_2019/3070974_prodog.leanwo.com.pfx
  8. #key-store-password: E70iVODH
  9. #key-store-type: PKCS12
  10. #是否启用压缩
  11. compression:
  12. enabled: true
  13. mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,font/woff2
  14. spring:
  15. application:
  16. # 应用名称,会在Eureka中作为服务的id标识(serviceId)
  17. name: gateway-server
  18. # 修改文件上传大小的限制
  19. servlet:
  20. multipart:
  21. # 单个文件大小
  22. maxFileSize: 100MB
  23. # 总文件大小
  24. maxRequestSize: 200MB
  25. cloud:
  26. gateway:
  27. discovery:
  28. locator:
  29. enabled: true
  30. routes:
  31. - id: application_server
  32. uri: lb://prodog-server
  33. predicates:
  34. - Path=/api/**
  35. - id: dingtalk_server
  36. uri: lb://dingtalk-server
  37. predicates:
  38. - Path=/dingTalkApi/**
  39. filters:
  40. - StripPrefix=1
  41. - id: workflow_server
  42. uri: lb://workflow-server
  43. predicates:
  44. - Path=/workflow-app/**
  45. # 正式的环境去掉该配置
  46. - id: pc_client
  47. uri: http://127.0.0.1:8081
  48. predicates:
  49. - Path=/pcapp/**
  50. # 正式的环境去掉该配置
  51. - id: pc_client_static
  52. uri: http://127.0.0.1:8081
  53. predicates:
  54. - Path=/static/**
  55. # 正式的环境去掉该配置
  56. - id: wms_client_static
  57. uri: http://127.0.0.1:8083
  58. predicates:
  59. - Path=/static-wms-app/**
  60. # 正式的环境去掉该配置
  61. - id: wms_client
  62. uri: http://127.0.0.1:8083
  63. predicates:
  64. - Path=/wmsapp/**
  65. # 正式的环境去掉该配置
  66. - id: eam_client
  67. uri: http://127.0.0.1:8082
  68. predicates:
  69. - Path=/eamapp/**
  70. # 文件服务器
  71. - id: file_server
  72. uri: lb://file-server
  73. predicates:
  74. - Path=/**
  75. #Eureka Server服务器地址.
  76. eureka:
  77. instance:
  78. prefer-ip-address: true
  79. #Eureka客户端向服务端发送心跳的时间间隔,单位为秒(客户端告诉服务端自己会按照该规则),默认30
  80. lease-renewal-interval-in-seconds: 5
  81. #Eureka服务端在收到最后一次心跳之后等待的时间上限,单位为秒,超过则剔除(客户端告诉服务端按照此规则等待自己),默认90
  82. lease-expiration-duration-in-seconds: 10
  83. client:
  84. fetch-registry: true
  85. register-with-eureka: true
  86. serviceUrl:
  87. defaultZone: http://localhost:88/eureka/
  88. ribbon:
  89. #请求处理的超时时间
  90. ReadTimeout: 12000000
  91. #请求连接的超时时间
  92. ConnectTimeout: 3000000