application-prod.yml 11 KB

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