application.yml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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/foodie-server/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://foodieapi.waimai-paotui.com/auth/line/callback
  75. # 后端回调登录后 302 跳回 App 的 scheme(App 注册该 scheme 接收 token/needPhone/error)
  76. app-redirect: com.twanmsdyh.app://pages/UserCenter/oauthLogin
  77. # 授权回调地址(须与 LINE Console 回调白名单 + 前端拿 code 时一致;LINE 仅校验一致性,不实际回调)
  78. redirect-uri: https://api.awayqtw.com/auth/line/callback
  79. # 用 code 换 access_token 的端点(一般不改)
  80. token-url: https://api.line.me/oauth2/v2.1/token
  81. # 用 access_token 换用户信息的端点(一般不改)
  82. profile-url: https://api.line.me/v2/profile
  83. # 开发环境配置
  84. server:
  85. # 服务器的HTTP端口,默认为8080
  86. port: 8082
  87. servlet:
  88. # 应用的访问路径
  89. context-path: /
  90. tomcat:
  91. # tomcat的URI编码
  92. uri-encoding: UTF-8
  93. # 连接数满后的排队数,默认为100
  94. accept-count: 1000
  95. threads:
  96. # tomcat最大线程数,默认为200
  97. max: 800
  98. # Tomcat启动初始化的线程数,默认值10
  99. min-spare: 100
  100. # 日志配置
  101. logging:
  102. level:
  103. com.ruoyi: debug
  104. org.springframework: warn
  105. # 用户配置
  106. user:
  107. password:
  108. # 密码最大错误次数
  109. maxRetryCount: 5
  110. # 密码锁定时间(默认10分钟)
  111. lockTime: 10
  112. spring:
  113. # 模板引擎
  114. thymeleaf:
  115. mode: HTML
  116. encoding: utf-8
  117. cache: false
  118. # 资源信息
  119. messages:
  120. # 国际化资源文件路径
  121. basename: i18n/messages
  122. profiles:
  123. active: druid
  124. # 文件上传
  125. servlet:
  126. multipart:
  127. # 单个文件大小
  128. max-file-size: 300MB
  129. # 设置总上传的文件大小
  130. max-request-size: 500MB
  131. # 服务模块
  132. devtools:
  133. restart:
  134. # 热部署开关
  135. enabled: true
  136. # redis 配置
  137. data:
  138. redis:
  139. # 地址
  140. host: localhost
  141. # 端口,默认为6379
  142. port: 6379
  143. # 数据库索引
  144. database: 1
  145. # 密码
  146. password:
  147. # 连接超时时间
  148. timeout: 10s
  149. lettuce:
  150. pool:
  151. # 连接池中的最小空闲连接
  152. min-idle: 0
  153. # 连接池中的最大空闲连接
  154. max-idle: 8
  155. # 连接池的最大数据库连接数
  156. max-active: 8
  157. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  158. max-wait: -1ms
  159. redisson:
  160. address: redis://127.0.0.1:6379
  161. # password: 不要写这一行
  162. # token配置
  163. token:
  164. # 令牌自定义标识
  165. header: Authorization
  166. # 令牌密钥
  167. secret: abcdefghijklmnopqrstuvwxyz
  168. # 令牌有效期(默认30分钟)
  169. expireTime: 30
  170. # MyBatis配置
  171. mybatis-plus:
  172. # 搜索指定包别名
  173. typeAliasesPackage: com.ruoyi.**.domain
  174. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  175. mapperLocations: classpath*:mapper/**/*Mapper.xml
  176. # 加载全局的配置文件
  177. configLocation: classpath:mybatis/mybatis-config.xml
  178. # PageHelper分页插件
  179. pagehelper:
  180. helperDialect: mysql
  181. supportMethodsArguments: true
  182. params: count=countSql
  183. # Swagger配置
  184. swagger:
  185. # 是否开启swagger
  186. enabled: true
  187. # 请求前缀
  188. pathMapping: /dev-api
  189. # 防止XSS攻击
  190. xss:
  191. # 过滤开关
  192. enabled: false
  193. # 排除链接(多个用逗号分隔)
  194. excludes: /system/notice/*,/dev-api/profile/*,/system/profile/*
  195. # 匹配链接
  196. urlPatterns: /system/*,/monitor/*,/tool/*
  197. # Minio配置
  198. minio:
  199. url: http://localhost:9000
  200. accessKey: minioadmin
  201. secretKey: minioadmin
  202. bucketName: ruoyi
  203. # 沙箱环境参数 START ZaloPay支付配置
  204. zalo:
  205. pay:
  206. configs:
  207. - app_id: "4514"
  208. key1: "DzdAnAuPsIsQbfpZ8nDOqWRt4ZNBhrg6"
  209. key2: "grDK67uf4zvUZuuZd4g1Zpj4PHJa3HzC"
  210. pay_type: "3"
  211. description: "钱包支付"
  212. - app_id: "4515"
  213. key1: "XHY56ATseHKddPmgWtbFI0yUev37dEW8"
  214. key2: "4X61sJFkxZoVozDgkrV3DjEZyTvCdGoz"
  215. pay_type: "4"
  216. description: "二维码支付"
  217. - app_id: "4516"
  218. key1: "RhqYGAqKeoZf2ZNxTw0gXYhb9KoLZPzg"
  219. key2: "D6RZsLeZvGIRXp43iMsp8o52gPPCq96H"
  220. pay_type: "5"
  221. description: "银行卡支付"
  222. api:
  223. create_order_url: "https://sb-openapi.zalopay.vn/v2/create"
  224. query_order_url: "https://sb-openapi.zalopay.vn/v2/query"
  225. refund_url: "https://sb-openapi.zalopay.vn/v2/refund"
  226. query_refund_url: "https://sb-openapi.zalopay.vn/v2/query_refund"
  227. # 沙箱环境参数 END
  228. # 正式环境参数 START ZaloPay支付配置
  229. #zalo:
  230. # pay:
  231. # configs:
  232. # - app_id: "4514"
  233. # key1: "ro6DlS5YYYMpptmW6mrq50qM1bChUGSM"
  234. # key2: "6UIKRr2rtdQeOnpnihaNOx3qGuGJt50w"
  235. # pay_type: "3"
  236. # description: "钱包支付"
  237. # - app_id: "4515"
  238. # key1: "WgxqmfbwBfRpa1O1qoMvE3NMryn16oBY"
  239. # key2: "rY1hgRRjbuEJY603TdiVDGwoVRcJUfw5"
  240. # pay_type: "4"
  241. # description: "二维码支付"
  242. # - app_id: "4516"
  243. # key1: "Bufv15SQ4OyoqL5cMEHPPRGul6HsBoIm"
  244. # key2: "3YVsqWXUzee3gbsp9fwXSf8MAb7fnuC3"
  245. # pay_type: "5"
  246. # description: "银行卡支付"
  247. # api:
  248. # create_order_url: "https://openapi.zalopay.vn/v2/create"
  249. # query_order_url: "https://openapi.zalopay.vn/v2/query"
  250. # refund_url: "https://openapi.zalopay.vn/v2/refund"
  251. # query_refund_url: "https://openapi.zalopay.vn/v2/query_refund"
  252. # 正式环境参数 END