application-dev.yml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. --- # 监控中心配置
  2. spring.boot.admin.client:
  3. # 增加客户端开关
  4. enabled: true
  5. url: http://localhost:9090/admin
  6. instance:
  7. service-host-type: IP
  8. username: ruoyi
  9. password: 123456
  10. --- # powerjob 配置
  11. powerjob:
  12. worker:
  13. # 如何开启调度中心请查看文档教程
  14. enabled: false
  15. # 需要先在 powerjob 登录页执行应用注册后才能使用
  16. app-name: ruoyi-worker
  17. enable-test-mode: false
  18. max-appended-wf-context-length: 4096
  19. max-result-length: 4096
  20. # 28080 端口 随着主应用端口飘逸 避免集群冲突
  21. port: 2${server.port}
  22. protocol: http
  23. server-address: 127.0.0.1:7700
  24. store-strategy: disk
  25. --- # 数据源配置
  26. spring:
  27. datasource:
  28. type: com.zaxxer.hikari.HikariDataSource
  29. # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
  30. dynamic:
  31. # 性能分析插件(有性能损耗 不建议生产环境使用)
  32. p6spy: true
  33. # 设置默认的数据源或者数据源组,默认值即为 master
  34. primary: master
  35. # 严格模式 匹配不到数据源则报错
  36. strict: true
  37. datasource:
  38. # 主库数据源
  39. master:
  40. type: ${spring.datasource.type}
  41. driverClassName: com.mysql.cj.jdbc.Driver
  42. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  43. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  44. url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  45. username: root
  46. password: root
  47. # 从库数据源
  48. slave:
  49. lazy: true
  50. type: ${spring.datasource.type}
  51. driverClassName: com.mysql.cj.jdbc.Driver
  52. url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  53. username:
  54. password:
  55. # oracle:
  56. # type: ${spring.datasource.type}
  57. # driverClassName: oracle.jdbc.OracleDriver
  58. # url: jdbc:oracle:thin:@//localhost:1521/XE
  59. # username: ROOT
  60. # password: root
  61. # hikari:
  62. # connectionTestQuery: SELECT 1 FROM DUAL
  63. # postgres:
  64. # type: ${spring.datasource.type}
  65. # driverClassName: org.postgresql.Driver
  66. # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  67. # username: root
  68. # password: root
  69. # sqlserver:
  70. # type: ${spring.datasource.type}
  71. # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  72. # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
  73. # username: SA
  74. # password: root
  75. hikari:
  76. # 最大连接池数量
  77. maxPoolSize: 20
  78. # 最小空闲线程数量
  79. minIdle: 10
  80. # 配置获取连接等待超时的时间
  81. connectionTimeout: 30000
  82. # 校验超时时间
  83. validationTimeout: 5000
  84. # 空闲连接存活最大时间,默认10分钟
  85. idleTimeout: 600000
  86. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  87. maxLifetime: 1800000
  88. # 连接测试query(配置检测连接是否有效)
  89. connectionTestQuery: SELECT 1
  90. # 多久检查一次连接的活性
  91. keepaliveTime: 30000
  92. --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  93. spring.data:
  94. redis:
  95. # 地址
  96. host: localhost
  97. # 端口,默认为6379
  98. port: 6379
  99. # 数据库索引
  100. database: 0
  101. # 密码(如没有密码请注释掉)
  102. # password:
  103. # 连接超时时间
  104. timeout: 10s
  105. # 是否开启ssl
  106. ssl.enabled: false
  107. redisson:
  108. # redis key前缀
  109. keyPrefix:
  110. # 线程池数量
  111. threads: 4
  112. # Netty线程池数量
  113. nettyThreads: 8
  114. # 单节点配置
  115. singleServerConfig:
  116. # 客户端名称
  117. clientName: ${ruoyi.name}
  118. # 最小空闲连接数
  119. connectionMinimumIdleSize: 8
  120. # 连接池大小
  121. connectionPoolSize: 32
  122. # 连接空闲超时,单位:毫秒
  123. idleConnectionTimeout: 10000
  124. # 命令等待超时,单位:毫秒
  125. timeout: 3000
  126. # 发布和订阅连接池大小
  127. subscriptionConnectionPoolSize: 50
  128. --- # mail 邮件发送
  129. mail:
  130. enabled: false
  131. host: smtp.163.com
  132. port: 465
  133. # 是否需要用户名密码验证
  134. auth: true
  135. # 发送方,遵循RFC-822标准
  136. from: xxx@163.com
  137. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  138. user: xxx@163.com
  139. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  140. pass: xxxxxxxxxx
  141. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  142. starttlsEnable: true
  143. # 使用SSL安全连接
  144. sslEnable: true
  145. # SMTP超时时长,单位毫秒,缺省值不超时
  146. timeout: 0
  147. # Socket连接超时值,单位毫秒,缺省值不超时
  148. connectionTimeout: 0
  149. --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
  150. # https://wind.kim/doc/start 文档地址 各个厂商可同时使用
  151. sms:
  152. # 阿里云 dysmsapi.aliyuncs.com
  153. alibaba:
  154. #请求地址 默认为 dysmsapi.aliyuncs.com 如无特殊改变可以不用设置
  155. requestUrl: dysmsapi.aliyuncs.com
  156. #阿里云的accessKey
  157. accessKeyId: xxxxxxx
  158. #阿里云的accessKeySecret
  159. accessKeySecret: xxxxxxx
  160. #短信签名
  161. signature: 测试
  162. tencent:
  163. #请求地址默认为 sms.tencentcloudapi.com 如无特殊改变可不用设置
  164. requestUrl: sms.tencentcloudapi.com
  165. #腾讯云的accessKey
  166. accessKeyId: xxxxxxx
  167. #腾讯云的accessKeySecret
  168. accessKeySecret: xxxxxxx
  169. #短信签名
  170. signature: 测试
  171. #短信sdkAppId
  172. sdkAppId: appid
  173. #地域信息默认为 ap-guangzhou 如无特殊改变可不用设置
  174. territory: ap-guangzhou
  175. --- # 三方授权
  176. justauth:
  177. enabled: true
  178. # 前端外网访问地址
  179. address: http://localhost:80
  180. type:
  181. maxkey:
  182. # maxkey 服务器地址
  183. # 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
  184. server-url: http://sso.maxkey.top
  185. client-id: 876892492581044224
  186. client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
  187. redirect-uri: ${justauth.address}/social-callback?source=maxkey
  188. qq:
  189. client-id: 10**********6
  190. client-secret: 1f7d08**********5b7**********29e
  191. redirect-uri: ${justauth.address}/social-callback?source=qq
  192. union-id: false
  193. weibo:
  194. client-id: 10**********6
  195. client-secret: 1f7d08**********5b7**********29e
  196. redirect-uri: ${justauth.address}/social-callback?source=weibo
  197. gitee:
  198. client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
  199. client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
  200. redirect-uri: ${justauth.address}/social-callback?source=gitee
  201. dingtalk:
  202. client-id: 10**********6
  203. client-secret: 1f7d08**********5b7**********29e
  204. redirect-uri: ${justauth.address}/social-callback?source=dingtalk
  205. baidu:
  206. client-id: 10**********6
  207. client-secret: 1f7d08**********5b7**********29e
  208. redirect-uri: ${justauth.address}/social-callback?source=baidu
  209. csdn:
  210. client-id: 10**********6
  211. client-secret: 1f7d08**********5b7**********29e
  212. redirect-uri: ${justauth.address}/social-callback?source=csdn
  213. coding:
  214. client-id: 10**********6
  215. client-secret: 1f7d08**********5b7**********29e
  216. redirect-uri: ${justauth.address}/social-callback?source=coding
  217. coding-group-name: xx
  218. oschina:
  219. client-id: 10**********6
  220. client-secret: 1f7d08**********5b7**********29e
  221. redirect-uri: ${justauth.address}/social-callback?source=oschina
  222. alipay:
  223. client-id: 10**********6
  224. client-secret: 1f7d08**********5b7**********29e
  225. redirect-uri: ${justauth.address}/social-callback?source=alipay
  226. alipay-public-key: MIIB**************DAQAB
  227. wechat_open:
  228. client-id: 10**********6
  229. client-secret: 1f7d08**********5b7**********29e
  230. redirect-uri: ${justauth.address}/social-callback?source=wechat_open
  231. wechat_mp:
  232. client-id: 10**********6
  233. client-secret: 1f7d08**********5b7**********29e
  234. redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
  235. wechat_enterprise:
  236. client-id: 10**********6
  237. client-secret: 1f7d08**********5b7**********29e
  238. redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
  239. agent-id: 1000002
  240. gitlab:
  241. client-id: 10**********6
  242. client-secret: 1f7d08**********5b7**********29e
  243. redirect-uri: ${justauth.address}/social-callback?source=gitlab