application-prod.yml 9.0 KB

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