application-prod.yml 11 KB

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