application-dev.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. --- # 监控中心配置
  2. spring.boot.admin.client:
  3. # 增加客户端开关
  4. enabled: true
  5. url: http://localhost:9090/admin
  6. instance:
  7. service-host-type: IP
  8. metadata:
  9. username: ${spring.boot.admin.client.username}
  10. userpassword: ${spring.boot.admin.client.password}
  11. username: @monitor.username@
  12. password: @monitor.password@
  13. --- # snail-job 配置
  14. snail-job:
  15. enabled: true
  16. # 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务
  17. group: "ruoyi_group"
  18. # SnailJob 接入验证令牌 详见 script/sql/snail_job.sql `sj_group_config` 表
  19. token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT"
  20. server:
  21. host: 127.0.0.1
  22. port: 17888
  23. # 详见 script/sql/snail_job.sql `sj_namespace` 表
  24. namespace: ${spring.profiles.active}
  25. # 随主应用端口飘逸
  26. port: 2${server.port}
  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: true
  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&nullCatalogMeansCurrent=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&nullCatalogMeansCurrent=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. # redis 密码必须配置
  100. password: ruoyi123
  101. # 连接超时时间
  102. timeout: 10s
  103. # 是否开启ssl
  104. ssl.enabled: false
  105. # redisson 配置
  106. redisson:
  107. # redis key前缀
  108. keyPrefix:
  109. # 线程池数量
  110. threads: 4
  111. # Netty线程池数量
  112. nettyThreads: 8
  113. # 单节点配置
  114. singleServerConfig:
  115. # 客户端名称
  116. clientName: ${ruoyi.name}
  117. # 最小空闲连接数
  118. connectionMinimumIdleSize: 8
  119. # 连接池大小
  120. connectionPoolSize: 32
  121. # 连接空闲超时,单位:毫秒
  122. idleConnectionTimeout: 10000
  123. # 命令等待超时,单位:毫秒
  124. timeout: 3000
  125. # 发布和订阅连接池大小
  126. subscriptionConnectionPoolSize: 50
  127. --- # mail 邮件发送
  128. mail:
  129. enabled: false
  130. host: smtp.163.com
  131. port: 465
  132. # 是否需要用户名密码验证
  133. auth: true
  134. # 发送方,遵循RFC-822标准
  135. from: xxx@163.com
  136. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  137. user: xxx@163.com
  138. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  139. pass: xxxxxxxxxx
  140. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  141. starttlsEnable: true
  142. # 使用SSL安全连接
  143. sslEnable: true
  144. # SMTP超时时长,单位毫秒,缺省值不超时
  145. timeout: 0
  146. # Socket连接超时值,单位毫秒,缺省值不超时
  147. connectionTimeout: 0
  148. --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
  149. # https://sms4j.com/doc3/ 差异配置文档地址 支持单厂商多配置,可以配置多个同时使用
  150. sms:
  151. # 配置源类型用于标定配置来源(interface,yaml)
  152. config-type: yaml
  153. # 用于标定yml中的配置是否开启短信拦截,接口配置不受此限制
  154. restricted: true
  155. # 短信拦截限制单手机号每分钟最大发送,只对开启了拦截的配置有效
  156. minute-max: 1
  157. # 短信拦截限制单手机号每日最大发送量,只对开启了拦截的配置有效
  158. account-max: 30
  159. # 以下配置来自于 org.dromara.sms4j.provider.config.BaseConfig类中
  160. blends:
  161. # 唯一ID 用于发送短信寻找具体配置 随便定义别用中文即可
  162. # 可以同时存在两个相同厂商 例如: ali1 ali2 两个不同的阿里短信账号 也可用于区分租户
  163. config1:
  164. # 框架定义的厂商名称标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  165. supplier: alibaba
  166. # 有些称为accessKey有些称之为apiKey,也有称为sdkKey或者appId。
  167. access-key-id: 您的accessKey
  168. # 称为accessSecret有些称之为apiSecret
  169. access-key-secret: 您的accessKeySecret
  170. signature: 您的短信签名
  171. sdk-app-id: 您的sdkAppId
  172. config2:
  173. # 厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  174. supplier: tencent
  175. access-key-id: 您的accessKey
  176. access-key-secret: 您的accessKeySecret
  177. signature: 您的短信签名
  178. sdk-app-id: 您的sdkAppId
  179. --- # 三方授权
  180. justauth:
  181. # 前端外网访问地址
  182. address: http://localhost:80
  183. type:
  184. maxkey:
  185. # maxkey 服务器地址
  186. # 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
  187. server-url: http://sso.maxkey.top
  188. client-id: 876892492581044224
  189. client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
  190. redirect-uri: ${justauth.address}/social-callback?source=maxkey
  191. topiam:
  192. # topiam 服务器地址
  193. server-url: http://127.0.0.1:1989/api/v1/authorize/y0q************spq***********8ol
  194. client-id: 449c4*********937************759
  195. client-secret: ac7***********1e0************28d
  196. redirect-uri: ${justauth.address}/social-callback?source=topiam
  197. scopes: [openid, email, phone, profile]
  198. qq:
  199. client-id: 10**********6
  200. client-secret: 1f7d08**********5b7**********29e
  201. redirect-uri: ${justauth.address}/social-callback?source=qq
  202. union-id: false
  203. weibo:
  204. client-id: 10**********6
  205. client-secret: 1f7d08**********5b7**********29e
  206. redirect-uri: ${justauth.address}/social-callback?source=weibo
  207. gitee:
  208. client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
  209. client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
  210. redirect-uri: ${justauth.address}/social-callback?source=gitee
  211. dingtalk:
  212. client-id: 10**********6
  213. client-secret: 1f7d08**********5b7**********29e
  214. redirect-uri: ${justauth.address}/social-callback?source=dingtalk
  215. baidu:
  216. client-id: 10**********6
  217. client-secret: 1f7d08**********5b7**********29e
  218. redirect-uri: ${justauth.address}/social-callback?source=baidu
  219. csdn:
  220. client-id: 10**********6
  221. client-secret: 1f7d08**********5b7**********29e
  222. redirect-uri: ${justauth.address}/social-callback?source=csdn
  223. coding:
  224. client-id: 10**********6
  225. client-secret: 1f7d08**********5b7**********29e
  226. redirect-uri: ${justauth.address}/social-callback?source=coding
  227. coding-group-name: xx
  228. oschina:
  229. client-id: 10**********6
  230. client-secret: 1f7d08**********5b7**********29e
  231. redirect-uri: ${justauth.address}/social-callback?source=oschina
  232. alipay_wallet:
  233. client-id: 10**********6
  234. client-secret: 1f7d08**********5b7**********29e
  235. redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
  236. alipay-public-key: MIIB**************DAQAB
  237. wechat_open:
  238. client-id: 10**********6
  239. client-secret: 1f7d08**********5b7**********29e
  240. redirect-uri: ${justauth.address}/social-callback?source=wechat_open
  241. wechat_mp:
  242. client-id: 10**********6
  243. client-secret: 1f7d08**********5b7**********29e
  244. redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
  245. wechat_enterprise:
  246. client-id: 10**********6
  247. client-secret: 1f7d08**********5b7**********29e
  248. redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
  249. agent-id: 1000002
  250. gitlab:
  251. client-id: 10**********6
  252. client-secret: 1f7d08**********5b7**********29e
  253. redirect-uri: ${justauth.address}/social-callback?source=gitlab