文件服务后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

104 lines
3.0 KiB

  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://rongxin-mysql-p-svc.dev:3306/rongxin_gxzb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. username: sample_dbowner
  11. password: TDkNWKSFatELG5pN
  12. # 从库数据源
  13. slave:
  14. # 从数据源开关/默认关闭
  15. enabled: false
  16. url:
  17. username:
  18. password:
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 10
  23. # 最大连接池数量
  24. maxActive: 100
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置连接超时时间
  28. connectTimeout: 30000
  29. # 配置网络超时时间
  30. socketTimeout: 60000
  31. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  32. timeBetweenEvictionRunsMillis: 60000
  33. # 配置一个连接在池中最小生存的时间,单位是毫秒
  34. minEvictableIdleTimeMillis: 300000
  35. # 配置一个连接在池中最大生存的时间,单位是毫秒
  36. maxEvictableIdleTimeMillis: 900000
  37. # 是否开启缓存 PreparedStatement
  38. poolPreparedStatements: true
  39. # 缓存 PreparedStatement 的数量
  40. maxPoolPreparedStatementPerConnectionSize: 20
  41. # 配置检测连接是否有效
  42. validationQuery: SELECT 1
  43. # 验证连接是否可用的超时时间
  44. validationQueryTimeout: 1000
  45. testWhileIdle: true
  46. testOnBorrow: false
  47. testOnReturn: false
  48. webStatFilter:
  49. enabled: true
  50. statViewServlet:
  51. enabled: true
  52. # 设置白名单,不填则允许所有访问
  53. allow:
  54. url-pattern: /druid/*
  55. # 控制台管理用户名和密码
  56. login-username: ruoyi
  57. login-password: 123456
  58. filter:
  59. stat:
  60. enabled: true
  61. # 慢SQL记录
  62. log-slow-sql: true
  63. slow-sql-millis: 1000
  64. merge-sql: true
  65. wall:
  66. config:
  67. multi-statement-allow: true
  68. # redis 配置
  69. redis:
  70. # 地址
  71. host: rongxin-redis-m-svc.dev
  72. # 端口,默认为6379
  73. port: 6279
  74. # 数据库索引
  75. database: 0
  76. # 密码
  77. password:
  78. # 连接超时时间
  79. timeout: 10s
  80. lettuce:
  81. pool:
  82. # 连接池中的最小空闲连接
  83. min-idle: 0
  84. # 连接池中的最大空闲连接
  85. max-idle: 8
  86. # 连接池的最大数据库连接数
  87. max-active: 8
  88. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  89. max-wait: -1ms
  90. # 开发环境配置
  91. server:
  92. # 服务器的HTTP端口
  93. port: ${NODE_PORT}
  94. address: ${NODE_HOST}
  95. aliyun:
  96. oss:
  97. accessKeyId: UjyKDL1Jo24Z6TCm
  98. accessKeySecret: wfVuLx7LsqIEwMqZ4WGd6ZPjUCyEEF
  99. publicBucketName: rongxin-pub-test
  100. endpointUrl: https://oss-cn-beijing.aliyuncs.com