application.yml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: 恰恰吃
  5. # 版本
  6. version: 1.0.2
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # profile: D:/ruoyi/uploadPath
  12. profile: /www/wwwroot/foodieapi.waimai-paotui.com/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # ezPay 电子发票配置
  18. ezpay:
  19. # 开票/作废根地址(测试环境 cinv.ezpay.com.tw;上线改 https://inv.ezpay.com.tw)
  20. base-url: https://cinv.ezpay.com.tw
  21. # 手机条码联网校验:测试环境 false(ezPay 测试网关无真实条码数据,会误判为不存在),正式环境改 true
  22. barcode-check: false
  23. # 蓝新金流(NewebPay)线上支付配置
  24. newebpay:
  25. # 幕前支付根地址(测试环境 ccore.newebpay.com;正式 core.newebpay.com)
  26. base-url: https://ccore.newebpay.com
  27. # 支付结果背景通知网址(须公网 80/443,蓝新服务器回调,对应 /pay/newebpay/notify)
  28. notify-url: https://your-public-domain/pay/newebpay/notify
  29. # 支付完成返回页(须公网,对应 /pay/newebpay/return,仅引导不改状态)
  30. return-url: https://your-public-domain/pay/newebpay/return
  31. # 支付完成前端结果页基址(ReturnURL 解析订单号后重定向到此,自动拼接 ?ddId=)
  32. front-result-url: https://your-h5-domain/#/pages/payResult
  33. # MPG 串接程式版本
  34. mpg-version: "2.3"
  35. # OMG(歐買尬/FunPoint) AIO 线上支付配置(016-omg-payment)
  36. omg:
  37. # 幕前支付根地址(测试 payment-stage.funpoint.com.tw;正式 payment.funpoint.com.tw)
  38. base-url: https://payment-stage.funpoint.com.tw
  39. # 支付结果服务端回调(须公网,OMG POST 回调 /pay/omg/notify,平台回纯串 1|OK)
  40. return-url: https://your-public-domain/pay/omg/notify
  41. # 支付完成前端结果页(须公网,与 return-url 不可相同;仅引导不改订单状态)
  42. order-result-url: https://your-h5-domain/#/pages/payResult
  43. # ATM/超商取号服务端回调(OMG POST 回调 /pay/omg/paymentInfo)
  44. payment-info-url: https://your-public-domain/pay/omg/paymentInfo
  45. # ATM/超商取号前端展示页(可选)
  46. client-redirect-url: https://your-h5-domain/#/pages/payInfo
  47. # IM 即时沟通配置
  48. im:
  49. # IM 平台根地址(测试环境 test-im.abtim-my.com;正式环境另行配置)
  50. base-url: https://test-im.abtim-my.com
  51. # 平台级鉴权令牌(extToken)
  52. ext-token: 92a88467-6eca-11f1-9dd5-00163e1eec55
  53. # 创建用户接口路径
  54. create-path: /bot/extCreate
  55. # 连接/读取超时(毫秒)
  56. timeout-ms: 5000
  57. # 三方登录配置(017-oauth-login)
  58. oauth:
  59. apple:
  60. # client_id = Apple client_id(identityToken 的 audience,实测=com.amazewayhk.zhibo)
  61. client-id: com.twanmsdyh.app
  62. # Apple 公钥地址(验签用,一般不改)
  63. jwks-url: https://appleid.apple.com/auth/keys
  64. google:
  65. # Google OAuth client_id(校验 ID-Token 的 audience)
  66. client-id: com.twanmsdyh.app
  67. tokeninfo-url: https://oauth2.googleapis.com/tokeninfo
  68. line:
  69. # Channel ID(LINE Developers Console)
  70. client-id: "2010911071"
  71. # Channel Secret(换 token 用,勿泄露)
  72. client-secret: "880fb850c17a3399d207100144a1cb67"
  73. # 授权回调地址(须与 LINE Console 回调白名单 + 前端 authorize 一致;GET /auth/line/callback 接住换 token 登录)
  74. redirect-uri: https://api.awayqtw.com/auth/line/callback
  75. # 后端回调登录后 302 跳回 App 的 scheme(App 注册该 scheme 接收 token/needPhone/error)
  76. app-redirect: com.twanmsdyh.app://oauthLogin
  77. # 用 code 换 access_token 的端点(一般不改)
  78. token-url: https://api.line.me/oauth2/v2.1/token
  79. # 用 access_token 换用户信息的端点(一般不改)
  80. profile-url: https://api.line.me/v2/profile
  81. # 开发环境配置
  82. server:
  83. # 服务器的HTTP端口,默认为8080
  84. port: 8082
  85. servlet:
  86. # 应用的访问路径
  87. context-path: /
  88. tomcat:
  89. # tomcat的URI编码
  90. uri-encoding: UTF-8
  91. # 连接数满后的排队数,默认为100
  92. accept-count: 1000
  93. threads:
  94. # tomcat最大线程数,默认为200
  95. max: 800
  96. # Tomcat启动初始化的线程数,默认值10
  97. min-spare: 100
  98. # 日志配置
  99. logging:
  100. level:
  101. com.ruoyi: debug
  102. org.springframework: warn
  103. # 用户配置
  104. user:
  105. password:
  106. # 密码最大错误次数
  107. maxRetryCount: 5
  108. # 密码锁定时间(默认10分钟)
  109. lockTime: 10
  110. spring:
  111. # 模板引擎
  112. thymeleaf:
  113. mode: HTML
  114. encoding: utf-8
  115. cache: false
  116. # 资源信息
  117. messages:
  118. # 国际化资源文件路径
  119. basename: i18n/messages
  120. profiles:
  121. active: druid
  122. # 文件上传
  123. servlet:
  124. multipart:
  125. # 单个文件大小
  126. max-file-size: 300MB
  127. # 设置总上传的文件大小
  128. max-request-size: 500MB
  129. # 服务模块
  130. devtools:
  131. restart:
  132. # 热部署开关
  133. enabled: true
  134. # redis 配置
  135. data:
  136. redis:
  137. # 地址
  138. host: localhost
  139. # 端口,默认为6379
  140. port: 6379
  141. # 数据库索引
  142. database: 1
  143. # 密码
  144. password:
  145. # 连接超时时间
  146. timeout: 10s
  147. lettuce:
  148. pool:
  149. # 连接池中的最小空闲连接
  150. min-idle: 0
  151. # 连接池中的最大空闲连接
  152. max-idle: 8
  153. # 连接池的最大数据库连接数
  154. max-active: 8
  155. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  156. max-wait: -1ms
  157. redisson:
  158. address: redis://127.0.0.1:6379
  159. # password: 不要写这一行
  160. # token配置
  161. token:
  162. # 令牌自定义标识
  163. header: Authorization
  164. # 令牌密钥
  165. secret: abcdefghijklmnopqrstuvwxyz
  166. # 令牌有效期(默认30分钟)
  167. expireTime: 30
  168. # MyBatis配置
  169. mybatis-plus:
  170. # 搜索指定包别名
  171. typeAliasesPackage: com.ruoyi.**.domain
  172. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  173. mapperLocations: classpath*:mapper/**/*Mapper.xml
  174. # 加载全局的配置文件
  175. configLocation: classpath:mybatis/mybatis-config.xml
  176. # PageHelper分页插件
  177. pagehelper:
  178. helperDialect: mysql
  179. supportMethodsArguments: true
  180. params: count=countSql
  181. # Swagger配置
  182. swagger:
  183. # 是否开启swagger
  184. enabled: true
  185. # 请求前缀
  186. pathMapping: /dev-api
  187. # 防止XSS攻击
  188. xss:
  189. # 过滤开关
  190. enabled: false
  191. # 排除链接(多个用逗号分隔)
  192. excludes: /system/notice/*,/dev-api/profile/*,/system/profile/*
  193. # 匹配链接
  194. urlPatterns: /system/*,/monitor/*,/tool/*
  195. # Minio配置
  196. minio:
  197. url: http://localhost:9000
  198. accessKey: minioadmin
  199. secretKey: minioadmin
  200. bucketName: ruoyi
  201. # 沙箱环境参数 START ZaloPay支付配置
  202. zalo:
  203. pay:
  204. configs:
  205. - app_id: "4514"
  206. key1: "DzdAnAuPsIsQbfpZ8nDOqWRt4ZNBhrg6"
  207. key2: "grDK67uf4zvUZuuZd4g1Zpj4PHJa3HzC"
  208. pay_type: "3"
  209. description: "钱包支付"
  210. - app_id: "4515"
  211. key1: "XHY56ATseHKddPmgWtbFI0yUev37dEW8"
  212. key2: "4X61sJFkxZoVozDgkrV3DjEZyTvCdGoz"
  213. pay_type: "4"
  214. description: "二维码支付"
  215. - app_id: "4516"
  216. key1: "RhqYGAqKeoZf2ZNxTw0gXYhb9KoLZPzg"
  217. key2: "D6RZsLeZvGIRXp43iMsp8o52gPPCq96H"
  218. pay_type: "5"
  219. description: "银行卡支付"
  220. api:
  221. create_order_url: "https://sb-openapi.zalopay.vn/v2/create"
  222. query_order_url: "https://sb-openapi.zalopay.vn/v2/query"
  223. refund_url: "https://sb-openapi.zalopay.vn/v2/refund"
  224. query_refund_url: "https://sb-openapi.zalopay.vn/v2/query_refund"
  225. # 沙箱环境参数 END
  226. # 正式环境参数 START ZaloPay支付配置
  227. #zalo:
  228. # pay:
  229. # configs:
  230. # - app_id: "4514"
  231. # key1: "ro6DlS5YYYMpptmW6mrq50qM1bChUGSM"
  232. # key2: "6UIKRr2rtdQeOnpnihaNOx3qGuGJt50w"
  233. # pay_type: "3"
  234. # description: "钱包支付"
  235. # - app_id: "4515"
  236. # key1: "WgxqmfbwBfRpa1O1qoMvE3NMryn16oBY"
  237. # key2: "rY1hgRRjbuEJY603TdiVDGwoVRcJUfw5"
  238. # pay_type: "4"
  239. # description: "二维码支付"
  240. # - app_id: "4516"
  241. # key1: "Bufv15SQ4OyoqL5cMEHPPRGul6HsBoIm"
  242. # key2: "3YVsqWXUzee3gbsp9fwXSf8MAb7fnuC3"
  243. # pay_type: "5"
  244. # description: "银行卡支付"
  245. # api:
  246. # create_order_url: "https://openapi.zalopay.vn/v2/create"
  247. # query_order_url: "https://openapi.zalopay.vn/v2/query"
  248. # refund_url: "https://openapi.zalopay.vn/v2/refund"
  249. # query_refund_url: "https://openapi.zalopay.vn/v2/query_refund"
  250. # 正式环境参数 END