application-dev.yml 2.1 KB

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