application-dev.yml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. allow-lazy-connect-server: 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&allowPublicKeyRetrieval=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&allowPublicKeyRetrieval=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. # postgres:
  62. # type: ${spring.datasource.type}
  63. # driverClassName: org.postgresql.Driver
  64. # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  65. # username: root
  66. # password: root
  67. # sqlserver:
  68. # type: ${spring.datasource.type}
  69. # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  70. # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
  71. # username: SA
  72. # password: root
  73. hikari:
  74. # 最大连接池数量
  75. maxPoolSize: 20
  76. # 最小空闲线程数量
  77. minIdle: 10
  78. # 配置获取连接等待超时的时间
  79. connectionTimeout: 30000
  80. # 校验超时时间
  81. validationTimeout: 5000
  82. # 空闲连接存活最大时间,默认10分钟
  83. idleTimeout: 600000
  84. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  85. maxLifetime: 1800000
  86. # 多久检查一次连接的活性
  87. keepaliveTime: 30000
  88. --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  89. spring.data:
  90. redis:
  91. # 地址
  92. host: localhost
  93. # 端口,默认为6379
  94. port: 6379
  95. # 数据库索引
  96. database: 0
  97. # 密码(如没有密码请注释掉)
  98. # password:
  99. # 连接超时时间
  100. timeout: 10s
  101. # 是否开启ssl
  102. ssl.enabled: false
  103. redisson:
  104. # redis key前缀
  105. keyPrefix:
  106. # 线程池数量
  107. threads: 4
  108. # Netty线程池数量
  109. nettyThreads: 8
  110. # 单节点配置
  111. singleServerConfig:
  112. # 客户端名称
  113. clientName: ${ruoyi.name}
  114. # 最小空闲连接数
  115. connectionMinimumIdleSize: 8
  116. # 连接池大小
  117. connectionPoolSize: 32
  118. # 连接空闲超时,单位:毫秒
  119. idleConnectionTimeout: 10000
  120. # 命令等待超时,单位:毫秒
  121. timeout: 3000
  122. # 发布和订阅连接池大小
  123. subscriptionConnectionPoolSize: 50
  124. --- # mail 邮件发送
  125. mail:
  126. enabled: false
  127. host: smtp.163.com
  128. port: 465
  129. # 是否需要用户名密码验证
  130. auth: true
  131. # 发送方,遵循RFC-822标准
  132. from: xxx@163.com
  133. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  134. user: xxx@163.com
  135. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  136. pass: xxxxxxxxxx
  137. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  138. starttlsEnable: true
  139. # 使用SSL安全连接
  140. sslEnable: true
  141. # SMTP超时时长,单位毫秒,缺省值不超时
  142. timeout: 0
  143. # Socket连接超时值,单位毫秒,缺省值不超时
  144. connectionTimeout: 0
  145. --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
  146. # https://wind.kim/doc/start 文档地址 各个厂商可同时使用
  147. sms:
  148. # 阿里云 dysmsapi.aliyuncs.com
  149. alibaba:
  150. #请求地址 默认为 dysmsapi.aliyuncs.com 如无特殊改变可以不用设置
  151. requestUrl: dysmsapi.aliyuncs.com
  152. #阿里云的accessKey
  153. accessKeyId: xxxxxxx
  154. #阿里云的accessKeySecret
  155. accessKeySecret: xxxxxxx
  156. #短信签名
  157. signature: 测试
  158. tencent:
  159. #请求地址默认为 sms.tencentcloudapi.com 如无特殊改变可不用设置
  160. requestUrl: sms.tencentcloudapi.com
  161. #腾讯云的accessKey
  162. accessKeyId: xxxxxxx
  163. #腾讯云的accessKeySecret
  164. accessKeySecret: xxxxxxx
  165. #短信签名
  166. signature: 测试
  167. #短信sdkAppId
  168. sdkAppId: appid
  169. #地域信息默认为 ap-guangzhou 如无特殊改变可不用设置
  170. territory: ap-guangzhou
  171. --- # 三方授权
  172. justauth:
  173. enabled: true
  174. # 前端外网访问地址
  175. address: http://localhost:80
  176. type:
  177. maxkey:
  178. # maxkey 服务器地址
  179. # 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
  180. server-url: http://sso.maxkey.top
  181. client-id: 876892492581044224
  182. client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
  183. redirect-uri: ${justauth.address}/social-callback?source=maxkey
  184. topiam:
  185. # topiam 服务器地址
  186. server-url: http://127.0.0.1:1989/api/v1/authorize/y0q************spq***********8ol
  187. client-id: 449c4*********937************759
  188. client-secret: ac7***********1e0************28d
  189. redirect-uri: ${justauth.address}/social-callback?source=topiam
  190. scopes: [openid, email, phone, profile]
  191. qq:
  192. client-id: 10**********6
  193. client-secret: 1f7d08**********5b7**********29e
  194. redirect-uri: ${justauth.address}/social-callback?source=qq
  195. union-id: false
  196. weibo:
  197. client-id: 10**********6
  198. client-secret: 1f7d08**********5b7**********29e
  199. redirect-uri: ${justauth.address}/social-callback?source=weibo
  200. gitee:
  201. client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
  202. client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
  203. redirect-uri: ${justauth.address}/social-callback?source=gitee
  204. dingtalk:
  205. client-id: 10**********6
  206. client-secret: 1f7d08**********5b7**********29e
  207. redirect-uri: ${justauth.address}/social-callback?source=dingtalk
  208. baidu:
  209. client-id: 10**********6
  210. client-secret: 1f7d08**********5b7**********29e
  211. redirect-uri: ${justauth.address}/social-callback?source=baidu
  212. csdn:
  213. client-id: 10**********6
  214. client-secret: 1f7d08**********5b7**********29e
  215. redirect-uri: ${justauth.address}/social-callback?source=csdn
  216. coding:
  217. client-id: 10**********6
  218. client-secret: 1f7d08**********5b7**********29e
  219. redirect-uri: ${justauth.address}/social-callback?source=coding
  220. coding-group-name: xx
  221. oschina:
  222. client-id: 10**********6
  223. client-secret: 1f7d08**********5b7**********29e
  224. redirect-uri: ${justauth.address}/social-callback?source=oschina
  225. alipay_wallet:
  226. client-id: 10**********6
  227. client-secret: 1f7d08**********5b7**********29e
  228. redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
  229. alipay-public-key: MIIB**************DAQAB
  230. wechat_open:
  231. client-id: 10**********6
  232. client-secret: 1f7d08**********5b7**********29e
  233. redirect-uri: ${justauth.address}/social-callback?source=wechat_open
  234. wechat_mp:
  235. client-id: 10**********6
  236. client-secret: 1f7d08**********5b7**********29e
  237. redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
  238. wechat_enterprise:
  239. client-id: 10**********6
  240. client-secret: 1f7d08**********5b7**********29e
  241. redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
  242. agent-id: 1000002
  243. gitlab:
  244. client-id: 10**********6
  245. client-secret: 1f7d08**********5b7**********29e
  246. redirect-uri: ${justauth.address}/social-callback?source=gitlab