application-dev.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. --- # 监控中心配置
  2. spring.boot.admin.client:
  3. # 增加客户端开关
  4. enabled: false
  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: false
  16. # 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务
  17. group: "ruoyi_group"
  18. # SnailJob 接入验证令牌 详见 script/sql/ry_job.sql `sj_group_config` 表
  19. token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT"
  20. server:
  21. host: 127.0.0.1
  22. port: 17888
  23. # 命名空间UUID 详见 script/sql/ry_job.sql `sj_namespace`表`unique_id`字段
  24. namespace: ${spring.profiles.active}
  25. # 随主应用端口漂移
  26. port: 2${server.port}
  27. # 客户端ip指定
  28. host:
  29. # RPC类型: netty, grpc
  30. rpc-type: grpc
  31. captcha:
  32. # 是否启用验证码校验
  33. enable: false
  34. # 验证码类型 math 数组计算 char 字符验证
  35. type: MATH
  36. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  37. category: CIRCLE
  38. # 数字验证码位数
  39. numberLength: 1
  40. # 字符验证码长度
  41. charLength: 4
  42. --- # 数据源配置
  43. spring:
  44. datasource:
  45. type: com.zaxxer.hikari.HikariDataSource
  46. # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
  47. dynamic:
  48. # 性能分析插件(有性能损耗 不建议生产环境使用)
  49. p6spy: true
  50. # 设置默认的数据源或者数据源组,默认值即为 master
  51. primary: master
  52. # 严格模式 匹配不到数据源则报错
  53. strict: true
  54. datasource:
  55. # 主库数据源
  56. master:
  57. type: ${spring.datasource.type}
  58. driverClassName: com.mysql.cj.jdbc.Driver
  59. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  60. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  61. url: jdbc:mysql://192.168.1.146:3306/wkx_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
  62. username: root
  63. password: P@ssw0rd
  64. # 本地数据库
  65. # url: jdbc:mysql://localhost:3306/wkx_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
  66. # username: root
  67. # password: 1234
  68. # # 从库数据源
  69. # slave:
  70. # lazy: true
  71. # type: ${spring.datasource.type}
  72. # driverClassName: com.mysql.cj.jdbc.Driver
  73. # 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
  74. # username:
  75. # password:
  76. # oracle:
  77. # type: ${spring.datasource.type}
  78. # driverClassName: oracle.jdbc.OracleDriver
  79. # url: jdbc:oracle:thin:@//localhost:1521/XE
  80. # username: ROOT
  81. # password: root
  82. # postgres:
  83. # type: ${spring.datasource.type}
  84. # driverClassName: org.postgresql.Driver
  85. # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  86. # username: root
  87. # password: root
  88. # sqlserver:
  89. # type: ${spring.datasource.type}
  90. # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  91. # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
  92. # username: SA
  93. # password: root
  94. hikari:
  95. # 最大连接池数量
  96. maxPoolSize: 20
  97. # 最小空闲线程数量
  98. minIdle: 10
  99. # 配置获取连接等待超时的时间
  100. connectionTimeout: 30000
  101. # 校验超时时间
  102. validationTimeout: 5000
  103. # 空闲连接存活最大时间,默认10分钟
  104. idleTimeout: 600000
  105. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  106. maxLifetime: 1800000
  107. # 多久检查一次连接的活性
  108. keepaliveTime: 30000
  109. --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  110. spring.data:
  111. redis:
  112. # 地址
  113. host: 192.168.1.146
  114. # host: localhost
  115. # 端口,默认为6379
  116. port: 6379
  117. # 数据库索引
  118. database: 14
  119. # redis 密码必须配置
  120. # password: ruoyi123
  121. # 连接超时时间
  122. timeout: 10s
  123. # 是否开启ssl
  124. ssl.enabled: false
  125. # redisson 配置
  126. redisson:
  127. # redis key前缀
  128. keyPrefix:
  129. # 线程池数量
  130. threads: 4
  131. # Netty线程池数量
  132. nettyThreads: 8
  133. # 单节点配置
  134. singleServerConfig:
  135. # 客户端名称 不能用中文
  136. clientName: wkx-his
  137. # 最小空闲连接数
  138. connectionMinimumIdleSize: 8
  139. # 连接池大小
  140. connectionPoolSize: 32
  141. # 连接空闲超时,单位:毫秒
  142. idleConnectionTimeout: 10000
  143. # 命令等待超时,单位:毫秒
  144. timeout: 3000
  145. # 发布和订阅连接池大小
  146. subscriptionConnectionPoolSize: 50
  147. --- # mail 邮件发送
  148. mail:
  149. enabled: true
  150. host: smtp.qq.com
  151. port: 465
  152. # 是否需要用户名密码验证
  153. auth: true
  154. # 发送方,遵循RFC-822标准
  155. from: 2053999261@qq.com
  156. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  157. user: 2053999261@qq.com
  158. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  159. pass: iblppzcfoyrgbifg
  160. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  161. starttlsEnable: true
  162. # 使用SSL安全连接
  163. sslEnable: true
  164. # SMTP超时时长,单位毫秒,缺省值不超时
  165. timeout: 0
  166. # Socket连接超时值,单位毫秒,缺省值不超时
  167. connectionTimeout: 0
  168. --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
  169. # https://sms4j.com/doc3/ 差异配置文档地址 支持单厂商多配置,可以配置多个同时使用
  170. sms:
  171. # 配置源类型用于标定配置来源(interface,yaml)
  172. config-type: yaml
  173. # 用于标定yml中的配置是否开启短信拦截,接口配置不受此限制
  174. restricted: true
  175. # 短信拦截限制单手机号每分钟最大发送,只对开启了拦截的配置有效
  176. minute-max: 1
  177. # 短信拦截限制单手机号每日最大发送量,只对开启了拦截的配置有效
  178. account-max: 30
  179. # 以下配置来自于 org.dromara.sms4j.provider.config.BaseConfig类中
  180. blends:
  181. # 唯一ID 用于发送短信寻找具体配置 随便定义别用中文即可
  182. # 可以同时存在两个相同厂商 例如: ali1 ali2 两个不同的阿里短信账号 也可用于区分租户
  183. config1:
  184. # 框架定义的厂商名称标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  185. supplier: alibaba
  186. # 有些称为accessKey有些称之为apiKey,也有称为sdkKey或者appId。
  187. access-key-id: 您的accessKey
  188. # 称为accessSecret有些称之为apiSecret
  189. access-key-secret: 您的accessKeySecret
  190. signature: 您的短信签名
  191. sdk-app-id: 您的sdkAppId
  192. config2:
  193. # 厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  194. supplier: tencent
  195. access-key-id: 您的accessKey
  196. access-key-secret: 您的accessKeySecret
  197. signature: 您的短信签名
  198. sdk-app-id: 您的sdkAppId
  199. --- # 三方授权
  200. justauth:
  201. # 前端外网访问地址
  202. address: http://localhost:80
  203. type:
  204. maxkey:
  205. # maxkey 服务器地址
  206. # 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
  207. server-url: http://sso.maxkey.top
  208. client-id: 876892492581044224
  209. client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
  210. redirect-uri: ${justauth.address}/social-callback?source=maxkey
  211. topiam:
  212. # topiam 服务器地址
  213. server-url: http://127.0.0.1:1898/api/v1/authorize/y0q************spq***********8ol
  214. client-id: 449c4*********937************759
  215. client-secret: ac7***********1e0************28d
  216. redirect-uri: ${justauth.address}/social-callback?source=topiam
  217. scopes: [ openid, email, phone, profile ]
  218. qq:
  219. client-id: 10**********6
  220. client-secret: 1f7d08**********5b7**********29e
  221. redirect-uri: ${justauth.address}/social-callback?source=qq
  222. union-id: false
  223. weibo:
  224. client-id: 10**********6
  225. client-secret: 1f7d08**********5b7**********29e
  226. redirect-uri: ${justauth.address}/social-callback?source=weibo
  227. gitee:
  228. client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
  229. client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
  230. redirect-uri: ${justauth.address}/social-callback?source=gitee
  231. dingtalk:
  232. client-id: 10**********6
  233. client-secret: 1f7d08**********5b7**********29e
  234. redirect-uri: ${justauth.address}/social-callback?source=dingtalk
  235. baidu:
  236. client-id: 10**********6
  237. client-secret: 1f7d08**********5b7**********29e
  238. redirect-uri: ${justauth.address}/social-callback?source=baidu
  239. csdn:
  240. client-id: 10**********6
  241. client-secret: 1f7d08**********5b7**********29e
  242. redirect-uri: ${justauth.address}/social-callback?source=csdn
  243. coding:
  244. client-id: 10**********6
  245. client-secret: 1f7d08**********5b7**********29e
  246. redirect-uri: ${justauth.address}/social-callback?source=coding
  247. coding-group-name: xx
  248. oschina:
  249. client-id: 10**********6
  250. client-secret: 1f7d08**********5b7**********29e
  251. redirect-uri: ${justauth.address}/social-callback?source=oschina
  252. alipay_wallet:
  253. client-id: 10**********6
  254. client-secret: 1f7d08**********5b7**********29e
  255. redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
  256. alipay-public-key: MIIB**************DAQAB
  257. wechat_open:
  258. client-id: 10**********6
  259. client-secret: 1f7d08**********5b7**********29e
  260. redirect-uri: ${justauth.address}/social-callback?source=wechat_open
  261. wechat_mp:
  262. client-id: 10**********6
  263. client-secret: 1f7d08**********5b7**********29e
  264. redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
  265. wechat_enterprise:
  266. client-id: 10**********6
  267. client-secret: 1f7d08**********5b7**********29e
  268. redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
  269. agent-id: 1000002
  270. gitlab:
  271. client-id: 10**********6
  272. client-secret: 1f7d08**********5b7**********29e
  273. redirect-uri: ${justauth.address}/social-callback?source=gitlab
  274. gitea:
  275. # 前端改动 https://gitee.com/JavaLionLi/plus-ui/pulls/204
  276. # gitea 服务器地址
  277. server-url: https://demo.gitea.com
  278. client-id: 10**********6
  279. client-secret: 1f7d08**********5b7**********29e
  280. redirect-uri: ${justauth.address}/social-callback?source=gitea