application-test.yml 11 KB

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