application-dev.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #dev环境公共配置文件
  2. spring:
  3. rabbitmq:
  4. host: 172.18.74.115
  5. port: 5672
  6. username: guest
  7. password: guest
  8. redis: #redis 配置
  9. database: 0
  10. password: Cs123456
  11. host: 172.18.74.115
  12. port: 6379
  13. pool:
  14. max-wait: 30
  15. max-idle: 5
  16. boot:
  17. admin:
  18. client:
  19. service-base-url: http://localhost:9101
  20. cache:
  21. type: redis
  22. # JWT
  23. jwt:
  24. header: Authorization
  25. secret: arch6Secret
  26. expiration: 86400
  27. tokenHead: "Arch6WithCloud "
  28. jackson:
  29. serialization:
  30. INDENT_OUTPUT: true
  31. eureka:
  32. client:
  33. registry-fetch-interval-seconds: 10 # 默认为30秒
  34. instance:
  35. lease-renewal-interval-in-seconds: 10 # 心跳时间,即服务续约间隔时间(缺省为30s)
  36. lease-expiration-duration-in-seconds: 30 # 发呆时间,即服务续约到期时间(缺省为90s)
  37. prefer-ip-address: true
  38. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  39. management:
  40. health:
  41. rabbit:
  42. enabled: false
  43. binders:
  44. enabled: false
  45. security:
  46. enabled: false # spring-boot 1.5.2之后严格执行安全策略,所以需要配置这个为false ,否则很多点监控不到
  47. feign:
  48. hystrix:
  49. enabled: false #Hystrix支持,如果为true,hystrix库必须在classpath中
  50. compression:
  51. request:
  52. enabled: true #请求GZIP压缩支持
  53. mime-types: text/xml,application/xml,application/json #支持压缩的mime types
  54. min-request-size: 2048
  55. response:
  56. enabled: true #响应GZIP压缩支持
  57. httpclient:
  58. enabled: true
  59. hystrix:
  60. command:
  61. default:
  62. execution:
  63. timeout:
  64. enabled: false
  65. isolation:
  66. thread:
  67. timeoutInMilliseconds: 60000 #让Hystrix的超时时间改为5秒,默认1秒
  68. logging:
  69. config: classpath:logback-custom.xml
  70. logstash:
  71. host: 192.168.1.104:4560
  72. gofastdfs:
  73. url: http://172.18.74.115:18080/group1/upload
  74. recordUrl: http://172.18.74.115:18080/group1
  75. server:
  76. undertow:
  77. accesslog:
  78. enabled: false
  79. pattern: common