application-dev.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. --- # 监控中心配置
  2. spring.boot.admin.client:
  3. # 增加客户端开关
  4. enabled: true
  5. url: http://localhost:9090/admin
  6. instance:
  7. service-host-type: IP
  8. username: ruoyi
  9. password: 123456
  10. --- # xxl-job 配置
  11. xxl.job:
  12. # 执行器开关
  13. enabled: true
  14. # 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
  15. admin-addresses: http://localhost:9100/xxl-job-admin
  16. # 执行器通讯TOKEN:非空时启用
  17. access-token: xxl-job
  18. executor:
  19. # 执行器AppName:执行器心跳注册分组依据;为空则关闭自动注册
  20. appname: xxl-job-executor
  21. # 执行器端口号 执行器从9101开始往后写
  22. port: 9101
  23. # 执行器注册:默认IP:PORT
  24. address:
  25. # 执行器IP:默认自动获取IP
  26. ip:
  27. # 执行器运行日志文件存储磁盘路径
  28. logpath: ./logs/xxl-job
  29. # 执行器日志文件保存天数:大于3生效
  30. logretentiondays: 30
  31. --- # 数据源配置
  32. spring:
  33. datasource:
  34. type: com.zaxxer.hikari.HikariDataSource
  35. # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
  36. dynamic:
  37. # 性能分析插件(有性能损耗 不建议生产环境使用)
  38. p6spy: true
  39. # 设置默认的数据源或者数据源组,默认值即为 master
  40. primary: master
  41. # 严格模式 匹配不到数据源则报错
  42. strict: true
  43. datasource:
  44. # 主库数据源
  45. master:
  46. type: ${spring.datasource.type}
  47. driverClassName: com.mysql.cj.jdbc.Driver
  48. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  49. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  50. url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  51. username: root
  52. password: root
  53. # 从库数据源
  54. slave:
  55. lazy: true
  56. type: ${spring.datasource.type}
  57. driverClassName: com.mysql.cj.jdbc.Driver
  58. url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  59. username:
  60. password:
  61. # oracle:
  62. # type: ${spring.datasource.type}
  63. # driverClassName: oracle.jdbc.OracleDriver
  64. # url: jdbc:oracle:thin:@//localhost:1521/XE
  65. # username: ROOT
  66. # password: root
  67. # hikari:
  68. # connectionTestQuery: SELECT 1 FROM DUAL
  69. # postgres:
  70. # type: ${spring.datasource.type}
  71. # driverClassName: org.postgresql.Driver
  72. # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  73. # username: root
  74. # password: root
  75. # sqlserver:
  76. # type: ${spring.datasource.type}
  77. # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  78. # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
  79. # username: SA
  80. # password: root
  81. hikari:
  82. # 最大连接池数量
  83. maxPoolSize: 20
  84. # 最小空闲线程数量
  85. minIdle: 10
  86. # 配置获取连接等待超时的时间
  87. connectionTimeout: 30000
  88. # 校验超时时间
  89. validationTimeout: 5000
  90. # 空闲连接存活最大时间,默认10分钟
  91. idleTimeout: 600000
  92. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  93. maxLifetime: 1800000
  94. # 连接测试query(配置检测连接是否有效)
  95. connectionTestQuery: SELECT 1
  96. # 多久检查一次连接的活性
  97. keepaliveTime: 30000
  98. --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  99. spring.data:
  100. redis:
  101. # 地址
  102. host: localhost
  103. # 端口,默认为6379
  104. port: 6379
  105. # 数据库索引
  106. database: 0
  107. # 密码(如没有密码请注释掉)
  108. # password:
  109. # 连接超时时间
  110. timeout: 10s
  111. # 是否开启ssl
  112. ssl: false
  113. redisson:
  114. # redis key前缀
  115. keyPrefix:
  116. # 线程池数量
  117. threads: 4
  118. # Netty线程池数量
  119. nettyThreads: 8
  120. # 单节点配置
  121. singleServerConfig:
  122. # 客户端名称
  123. clientName: ${ruoyi.name}
  124. # 最小空闲连接数
  125. connectionMinimumIdleSize: 8
  126. # 连接池大小
  127. connectionPoolSize: 32
  128. # 连接空闲超时,单位:毫秒
  129. idleConnectionTimeout: 10000
  130. # 命令等待超时,单位:毫秒
  131. timeout: 3000
  132. # 发布和订阅连接池大小
  133. subscriptionConnectionPoolSize: 50
  134. --- # mail 邮件发送
  135. mail:
  136. enabled: false
  137. host: smtp.163.com
  138. port: 465
  139. # 是否需要用户名密码验证
  140. auth: true
  141. # 发送方,遵循RFC-822标准
  142. from: xxx@163.com
  143. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  144. user: xxx@163.com
  145. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  146. pass: xxxxxxxxxx
  147. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  148. starttlsEnable: true
  149. # 使用SSL安全连接
  150. sslEnable: true
  151. # SMTP超时时长,单位毫秒,缺省值不超时
  152. timeout: 0
  153. # Socket连接超时值,单位毫秒,缺省值不超时
  154. connectionTimeout: 0
  155. --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
  156. # https://wind.kim/doc/start 文档地址 各个厂商可同时使用
  157. sms:
  158. # 阿里云 dysmsapi.aliyuncs.com
  159. alibaba:
  160. #请求地址 默认为 dysmsapi.aliyuncs.com 如无特殊改变可以不用设置
  161. requestUrl: dysmsapi.aliyuncs.com
  162. #阿里云的accessKey
  163. accessKeyId: xxxxxxx
  164. #阿里云的accessKeySecret
  165. accessKeySecret: xxxxxxx
  166. #短信签名
  167. signature: 测试
  168. tencent:
  169. #请求地址默认为 sms.tencentcloudapi.com 如无特殊改变可不用设置
  170. requestUrl: sms.tencentcloudapi.com
  171. #腾讯云的accessKey
  172. accessKeyId: xxxxxxx
  173. #腾讯云的accessKeySecret
  174. accessKeySecret: xxxxxxx
  175. #短信签名
  176. signature: 测试
  177. #短信sdkAppId
  178. sdkAppId: appid
  179. #地域信息默认为 ap-guangzhou 如无特殊改变可不用设置
  180. territory: ap-guangzhou
  181. justauth:
  182. enabled: true
  183. type:
  184. QQ:
  185. client-id: 10**********6
  186. client-secret: 1f7d08**********5b7**********29e
  187. redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback
  188. union-id: false
  189. WEIBO:
  190. client-id: 10**********6
  191. client-secret: 1f7d08**********5b7**********29e
  192. redirect-uri: http://oauth.xkcoding.com/demo/oauth/weibo/callback
  193. gitee:
  194. client-id: 38eaaa1b77b5e064313057a2f5745ce3a9f3e7686d9bd302c7df2f308ef6db81
  195. client-secret: 2e633af8780cb9fe002c4c7291b722db944402e271efb99b062811f52d7da1ff
  196. redirect-uri: http://localhost:80/social-login?source=gitee
  197. DINGTALK:
  198. client-id: 10**********6
  199. client-secret: 1f7d08**********5b7**********29e
  200. redirect-uri: http://oauth.xkcoding.com/demo/oauth/dingtalk/callback
  201. BAIDU:
  202. client-id: 10**********6
  203. client-secret: 1f7d08**********5b7**********29e
  204. redirect-uri: http://oauth.xkcoding.com/demo/oauth/baidu/callback
  205. CSDN:
  206. client-id: 10**********6
  207. client-secret: 1f7d08**********5b7**********29e
  208. redirect-uri: http://oauth.xkcoding.com/demo/oauth/csdn/callback
  209. CODING:
  210. client-id: 10**********6
  211. client-secret: 1f7d08**********5b7**********29e
  212. redirect-uri: http://oauth.xkcoding.com/demo/oauth/coding/callback
  213. coding-group-name: xx
  214. OSCHINA:
  215. client-id: 10**********6
  216. client-secret: 1f7d08**********5b7**********29e
  217. redirect-uri: http://oauth.xkcoding.com/demo/oauth/oschina/callback
  218. ALIPAY:
  219. client-id: 10**********6
  220. client-secret: 1f7d08**********5b7**********29e
  221. redirect-uri: http://oauth.xkcoding.com/demo/oauth/alipay/callback
  222. alipay-public-key: MIIB**************DAQAB
  223. WECHAT_OPEN:
  224. client-id: 10**********6
  225. client-secret: 1f7d08**********5b7**********29e
  226. redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_open/callback
  227. WECHAT_MP:
  228. client-id: 10**********6
  229. client-secret: 1f7d08**********5b7**********29e
  230. redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_mp/callback
  231. WECHAT_ENTERPRISE:
  232. client-id: 10**********6
  233. client-secret: 1f7d08**********5b7**********29e
  234. redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback
  235. agent-id: 1000002
  236. TAOBAO:
  237. client-id: 10**********6
  238. client-secret: 1f7d08**********5b7**********29e
  239. redirect-uri: http://oauth.xkcoding.com/demo/oauth/taobao/callback
  240. GOOGLE:
  241. client-id: 10**********6
  242. client-secret: 1f7d08**********5b7**********29e
  243. redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback
  244. FACEBOOK:
  245. client-id: 10**********6
  246. client-secret: 1f7d08**********5b7**********29e
  247. redirect-uri: http://oauth.xkcoding.com/demo/oauth/facebook/callback
  248. DOUYIN:
  249. client-id: 10**********6
  250. client-secret: 1f7d08**********5b7**********29e
  251. redirect-uri: http://oauth.xkcoding.com/demo/oauth/douyin/callback
  252. LINKEDIN:
  253. client-id: 10**********6
  254. client-secret: 1f7d08**********5b7**********29e
  255. redirect-uri: http://oauth.xkcoding.com/demo/oauth/linkedin/callback
  256. MICROSOFT:
  257. client-id: 10**********6
  258. client-secret: 1f7d08**********5b7**********29e
  259. redirect-uri: http://oauth.xkcoding.com/demo/oauth/microsoft/callback
  260. MI:
  261. client-id: 10**********6
  262. client-secret: 1f7d08**********5b7**********29e
  263. redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback
  264. TOUTIAO:
  265. client-id: 10**********6
  266. client-secret: 1f7d08**********5b7**********29e
  267. redirect-uri: http://oauth.xkcoding.com/demo/oauth/toutiao/callback
  268. TEAMBITION:
  269. client-id: 10**********6
  270. client-secret: 1f7d08**********5b7**********29e
  271. redirect-uri: http://oauth.xkcoding.com/demo/oauth/teambition/callback
  272. RENREN:
  273. client-id: 10**********6
  274. client-secret: 1f7d08**********5b7**********29e
  275. redirect-uri: http://oauth.xkcoding.com/demo/oauth/renren/callback
  276. PINTEREST:
  277. client-id: 10**********6
  278. client-secret: 1f7d08**********5b7**********29e
  279. redirect-uri: http://oauth.xkcoding.com/demo/oauth/pinterest/callback
  280. STACK_OVERFLOW:
  281. client-id: 10**********6
  282. client-secret: 1f7d08**********5b7**********29e
  283. redirect-uri: http://oauth.xkcoding.com/demo/oauth/stack_overflow/callback
  284. stack-overflow-key: asd*********asd
  285. HUAWEI:
  286. client-id: 10**********6
  287. client-secret: 1f7d08**********5b7**********29e
  288. redirect-uri: http://oauth.xkcoding.com/demo/oauth/huawei/callback
  289. KUJIALE:
  290. client-id: 10**********6
  291. client-secret: 1f7d08**********5b7**********29e
  292. redirect-uri: http://oauth.xkcoding.com/demo/oauth/kujiale/callback
  293. GITLAB:
  294. client-id: 10**********6
  295. client-secret: 1f7d08**********5b7**********29e
  296. redirect-uri: http://oauth.xkcoding.com/demo/oauth/gitlab/callback
  297. MEITUAN:
  298. client-id: 10**********6
  299. client-secret: 1f7d08**********5b7**********29e
  300. redirect-uri: http://oauth.xkcoding.com/demo/oauth/meituan/callback
  301. ELEME:
  302. client-id: 10**********6
  303. client-secret: 1f7d08**********5b7**********29e
  304. redirect-uri: http://oauth.xkcoding.com/demo/oauth/eleme/callback
  305. TWITTER:
  306. client-id: 10**********6
  307. client-secret: 1f7d08**********5b7**********29e
  308. redirect-uri: http://oauth.xkcoding.com/demo/oauth/twitter/callback
  309. XMLY:
  310. client-id: 10**********6
  311. client-secret: 1f7d08**********5b7**********29e
  312. redirect-uri: http://oauth.xkcoding.com/demo/oauth/xmly/callback
  313. # 设备唯一标识ID
  314. device-id: xxxxxxxxxxxxxx
  315. # 客户端操作系统类型,1-iOS系统,2-Android系统,3-Web
  316. client-os-type: 3
  317. # 客户端包名,如果 clientOsType 为1或2时必填。对Android客户端是包名,对IOS客户端是Bundle ID
  318. #pack-id: xxxx
  319. FEISHU:
  320. client-id: 10**********6
  321. client-secret: 1f7d08**********5b7**********29e
  322. redirect-uri: http://oauth.xkcoding.com/demo/oauth/feishu/callback
  323. JD:
  324. client-id: 10**********6
  325. client-secret: 1f7d08**********5b7**********29e
  326. redirect-uri: http://oauth.xkcoding.com/demo/oauth/jd/callback