Application.yml 2.8 KB

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