svr-org.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. data-source:
  21. driver-class-name: com.mysql.jdbc.Driver
  22. initialize-size: 1
  23. max-total: 20
  24. max-idle: 10
  25. min-idle: 1
  26. validation-query: SELECT 1
  27. test-on-borrow: true
  28. remove-abandoned-timeout: 55
  29. fast-dfs:
  30. pool:
  31. init-size: 5
  32. max-size: 20
  33. wait-time: 500
  34. connect-timeout: 2
  35. network-timeout: 30
  36. charset: ISO8859-1
  37. http:
  38. tracker-http-port: 80
  39. anti-steal-token: no
  40. secret-key: FastDFS1234567890
  41. ---
  42. spring:
  43. profiles: dev
  44. redis:
  45. host: 192.168.1.220 # Redis server host.
  46. fast-dfs:
  47. tracker-server: 172.19.103.54:22122
  48. data-source:
  49. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  50. user-name: ha
  51. password: ha
  52. ---
  53. spring:
  54. profiles: test
  55. redis:
  56. host: 172.19.103.47 # Redis server host.
  57. fast-dfs:
  58. tracker-server: 172.19.103.54:22122
  59. data-source:
  60. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  61. user-name: weifuwu
  62. password: weifuwu
  63. ---
  64. spring:
  65. profiles: prod
  66. redis:
  67. host: 11.1.2.20 # Redis server host.
  68. fast-dfs:
  69. tracker-server: 172.19.103.54:22122
  70. data-source:
  71. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  72. user-name: ha
  73. password: jkzlxm