application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主
  2. server:
  3. port: 8088
  4. spring:
  5. application:
  6. name: web-gateway #注册到发现服务的id 如果id一样 eurika会自动做负载
  7. jmx:
  8. default-domain: web-gateway
  9. http:
  10. multipart:
  11. enabled: true
  12. max-file-size: 500MB
  13. max-request-size: 500MB
  14. # data:
  15. # elasticsearch: #ElasticsearchProperties
  16. # cluster-name: jkzl #默认即为elasticsearch 集群名
  17. # cluster-nodes: 172.19.103.45:9300,172.19.103.68:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  18. # local: false #是否本地连接
  19. # properties: # Additional properties used to configure the client.
  20. # enable: true
  21. # # JEST (Elasticsearch HTTP client) (JestProperties)
  22. # elasticsearch:
  23. # jest:
  24. # uris: http://172.19.103.45:9200,http://172.19.103.68:9200
  25. ## uris: http://172.19.103.68:9200
  26. # connection-timeout: 60000 # Connection timeout in milliseconds.
  27. # multi-threaded: true
  28. redis:
  29. host: 172.19.103.88 # Redis server host.
  30. port: 6379 # Redis server port.
  31. database: 0
  32. ##开启feign断路器
  33. feign:
  34. hystrix:
  35. enabled: true
  36. management:
  37. security:
  38. enabled: false #关闭 refresh的权限认证
  39. hystrix:
  40. threadpool:
  41. default:
  42. coreSize: 500 #并发执行的最大线程数,默认10
  43. command:
  44. paas-file:
  45. execution:
  46. isolation:
  47. thread:
  48. timeoutInMilliseconds: 3600000
  49. default:
  50. execution:
  51. isolation:
  52. thread:
  53. timeoutInMilliseconds: 308000 #命令执行超时时间,默认1000ms
  54. ribbon:
  55. ReadTimeout: 300000
  56. ConnectTimeout: 5000
  57. #zuul 默认会代理所有的微服务 路径 /{appliction.name}/**
  58. #zuul:
  59. # ignored-services: '*' ##忽略全部的代理 忽略单个微服务 ignored-services: svr-base 多个逗号分割
  60. # routes:
  61. # svr-base: /v1/base/** ##svr-base方向代理到/base下多层级的路径
  62. # svr-wlyy: /v1/wlyy/**
  63. # api-esb-url:
  64. # path: /job/**
  65. # url: http://192.168.131.131:10030/
  66. # stripPrefix: false ##如果是物理服务器要设置成false
  67. # svr-base: 这种方式和 svr-base: /base/** 一样 svr-base可以随便写 唯一即可
  68. # path: /base/** path是代理后的路径
  69. # serviceId: svr-base serviceId是微服务name
  70. # svr-base: 这种方式和 上面一样 就是serviceId改成具体的url 但是这种配置方法不能利用eurika的负载均衡
  71. # path: /base/**
  72. # url: http://localhost:10020/
  73. #svr-base: 这边是微服务ID 配置负载均衡
  74. # ribbon:
  75. # listOfService: http://localhost:10020/,http://localhost:10021/
  76. ---
  77. spring:
  78. profiles: jwdev
  79. # cloud:
  80. # stream:
  81. # kafka:
  82. # binder:
  83. # brokers: 172.17.110.201
  84. # defaultBrokerPort: 9092
  85. # zkNodes: 172.17.110.201
  86. # defaultZkPort: 2181
  87. # replicationFactor: 1
  88. ---
  89. spring:
  90. profiles: jwtest
  91. ---
  92. spring:
  93. profiles: jwprod