application-prod.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. project:
  2. name: prod
  3. jedis:
  4. pool:
  5. config:
  6. maxTotal: 100
  7. maxIdle: 20
  8. maxWaitMillis: 20000
  9. host: prod.redis.java110.com
  10. port: 6379
  11. eureka:
  12. instance:
  13. leaseRenewalIntervalInSeconds: 10
  14. leaseExpirationDurationInSeconds: 30
  15. preferIpAddress: true
  16. instanceId: ${spring.cloud.client.ipAddress}:${server.port}
  17. client:
  18. serviceUrl:
  19. defaultZone: http://prod.java110.com:8761/eureka/
  20. #defaultZone: http://localhost:8761/eureka/
  21. server:
  22. port: 8443
  23. ssl:
  24. keyStoreType: PKCS12
  25. keyAlias: tomcat
  26. key-store: classpath:keystore.p12
  27. key-store-password: 12345678
  28. session:
  29. cookie:
  30. http-only: true
  31. tomcat:
  32. uri-encoding: UTF-8
  33. spring:
  34. http:
  35. encoding:
  36. charset: UTF-8
  37. enabled: true
  38. force: true
  39. application:
  40. name: console-service
  41. redis:
  42. database: 0
  43. host: prod.redis.java110.com
  44. port: 6379
  45. pool:
  46. max-active: 300
  47. max-wait: 10000
  48. max-idle: 100
  49. min-idle: 0
  50. timeout: 0
  51. datasource:
  52. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  53. minIdle: 5
  54. validationQuery: SELECT 1 FROM DUAL
  55. initialSize: 5
  56. maxWait: 60000
  57. filters: stat,wall,log4j
  58. poolPreparedStatements: true
  59. type: com.alibaba.druid.pool.DruidDataSource
  60. url: jdbc:mysql://prod.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
  61. maxPoolPreparedStatementPerConnectionSize: 20
  62. password: TT@12345678
  63. testOnBorrow: false
  64. testWhileIdle: true
  65. minEvictableIdleTimeMillis: 300000
  66. timeBetweenEvictionRunsMillis: 60000
  67. testOnReturn: false
  68. driverClassName: com.mysql.jdbc.Driver
  69. maxActive: 20
  70. username: TT
  71. thymeleaf:
  72. mode: LEGACYHTML5
  73. cache: false
  74. prefix: classpath:/views/
  75. encoding: UTF-8
  76. suffix: .html
  77. content-type: text/html
  78. #============== kafka ===================
  79. kafka:
  80. consumer:
  81. zookeeper:
  82. connect: prod.zk.java110.com:2181
  83. servers: prod.kafka.java110.com:9092
  84. enable:
  85. auto:
  86. commit: true
  87. session:
  88. timeout: 6000
  89. auto:
  90. commit:
  91. interval: 100
  92. offset:
  93. reset: latest
  94. topic: test
  95. group:
  96. id: consoleService
  97. concurrency: 10
  98. producer:
  99. zookeeper:
  100. connect: prod.zk.java110.com:2181
  101. servers: prod.kafka.java110.com:9092
  102. retries: 0
  103. batch:
  104. size: 4096
  105. linger: 1
  106. buffer:
  107. memory: 40960