svr-org.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. logging:
  2. level:
  3. com:
  4. netflix: ERROR
  5. spring:
  6. # REDIS
  7. redis:
  8. database: 0 # Database index used by the connection factory.
  9. port: 6379 # Redis server port.
  10. password: # Login password of the redis server.
  11. timeout: 0 # Connection timeout in milliseconds.
  12. #sentinel:
  13. # master: # Name of Redis server.
  14. # nodes: # Comma-separated list of host:port pairs.
  15. pool:
  16. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  17. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  18. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  19. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
  20. datasource:
  21. driver-class-name: com.mysql.jdbc.Driver
  22. max-active: 20
  23. max-idle: 8
  24. min-idle: 8
  25. validation-query: SELECT 1
  26. test-on-borrow: true
  27. fast-dfs:
  28. pool:
  29. init-size: 5
  30. max-size: 20
  31. wait-time: 500
  32. connect-timeout: 2
  33. network-timeout: 30
  34. charset: ISO8859-1
  35. http:
  36. tracker-http-port: 80
  37. anti-steal-token: no
  38. secret-key: FastDFS1234567890
  39. ---
  40. spring:
  41. profiles: dev
  42. datasource:
  43. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  44. username: ha
  45. password: ha
  46. redis:
  47. host: 192.168.1.220 # Redis server host.
  48. fast-dfs:
  49. tracker-server: 172.19.103.54:22122
  50. public-server: http://172.19.103.54:22122
  51. password: ha
  52. ---
  53. spring:
  54. profiles: alpha
  55. datasource:
  56. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  57. username: ha
  58. password: ha
  59. redis:
  60. host: 192.168.1.220 # Redis server host.
  61. fast-dfs:
  62. tracker-server: 172.19.103.54:22122
  63. public-server: http://172.19.103.54:22122
  64. ---
  65. spring:
  66. profiles: test
  67. datasource:
  68. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  69. username: weifuwu
  70. password: weifuwu
  71. redis:
  72. host: 172.19.103.47 # Redis server host.
  73. fast-dfs:
  74. tracker-server: 172.19.103.13:22122
  75. public-server: http://172.19.103.52:80
  76. ---
  77. spring:
  78. profiles: prod
  79. redis:
  80. host: 11.1.2.20 # Redis server host.
  81. fast-dfs:
  82. tracker-server: 11.1.2.9:22122
  83. public-server: http://ds.ehr.yihu.com:22122
  84. data-source:
  85. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  86. user-name: ha
  87. password: jkzlxm