application-pro.yml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. # 项目相关配置
  2. ylx:
  3. # 名称
  4. name: NightFragrance
  5. # 版本
  6. version: 3.8.7
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/nightFragrance/uploadPath,Linux配置 /home/nightFragrance/uploadPath)
  10. # profile: /home/nightFragrance/uploadPath
  11. profile: /nightFragrance/uploadPath
  12. # 获取ip地址开关
  13. addressEnabled: false
  14. # 验证码类型 math 数字计算 char 字符验证
  15. captchaType: math
  16. ym: city.baoxianzhanggui.com
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8080
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # 连接数满后的排队数,默认为100
  28. accept-count: 1000
  29. threads:
  30. # tomcat最大线程数,默认为200
  31. max: 800
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 100
  34. # 日志配置
  35. logging:
  36. level:
  37. com.ylx: debug
  38. org.springframework: warn
  39. # 用户配置
  40. user:
  41. password:
  42. # 密码最大错误次数
  43. maxRetryCount: 5
  44. # 密码锁定时间(默认10分钟)
  45. lockTime: 10
  46. # Spring配置
  47. spring:
  48. # 资源信息
  49. messages:
  50. # 国际化资源文件路径
  51. basename: i18n/messages
  52. datasource:
  53. type: com.alibaba.druid.pool.DruidDataSource
  54. driverClassName: com.mysql.cj.jdbc.Driver
  55. druid:
  56. # 主库数据源
  57. master:
  58. # url: jdbc:mysql://39.98.239.48:3366/night_fragrance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  59. # url: jdbc:mysql://rm-8vbaejxof1xh06o9r.mysql.zhangbei.rds.aliyuncs.com:3306/night_fragrance?serverTimezone=Asia/Shanghai&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true
  60. # username: sxzgkj
  61. # password: 'Iy$@$koH@oURxyvw'
  62. url: jdbc:mysql://39.98.239.48:3366/night_fragrance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  63. username: root
  64. password: '@RqGHG#KZ*C9ytkQ'
  65. # 从库数据源
  66. slave:
  67. # 从数据源开关/默认关闭
  68. enabled: false
  69. url:
  70. username:
  71. password:
  72. # 初始连接数
  73. initialSize: 5
  74. # 最小连接池数量
  75. minIdle: 10
  76. # 最大连接池数量
  77. maxActive: 20
  78. # 配置获取连接等待超时的时间
  79. maxWait: 60000
  80. # 配置连接超时时间
  81. connectTimeout: 30000
  82. # 配置网络超时时间
  83. socketTimeout: 60000
  84. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  85. timeBetweenEvictionRunsMillis: 60000
  86. # 配置一个连接在池中最小生存的时间,单位是毫秒
  87. minEvictableIdleTimeMillis: 300000
  88. # 配置一个连接在池中最大生存的时间,单位是毫秒
  89. maxEvictableIdleTimeMillis: 900000
  90. # 配置检测连接是否有效
  91. validationQuery: SELECT 1 FROM DUAL
  92. testWhileIdle: true
  93. testOnBorrow: false
  94. testOnReturn: false
  95. webStatFilter:
  96. enabled: true
  97. statViewServlet:
  98. enabled: true
  99. # 设置白名单,不填则允许所有访问
  100. allow:
  101. url-pattern: /druid/*
  102. # 控制台管理用户名和密码
  103. login-username: ruoyi
  104. login-password: 123456
  105. filter:
  106. stat:
  107. enabled: true
  108. # 慢SQL记录
  109. log-slow-sql: true
  110. slow-sql-millis: 1000
  111. merge-sql: true
  112. wall:
  113. config:
  114. multi-statement-allow: true
  115. # 文件上传
  116. servlet:
  117. multipart:
  118. # 单个文件大小
  119. max-file-size: 10MB
  120. # 设置总上传的文件大小
  121. max-request-size: 20MB
  122. # 服务模块
  123. devtools:
  124. restart:
  125. # 热部署开关
  126. enabled: false
  127. # redis 配置
  128. redis:
  129. # 地址
  130. host: 127.0.0.1
  131. # 端口,默认为6379
  132. port: 6379
  133. # 数据库索引
  134. database: 5
  135. # 密码
  136. #password: sxzgkj@2023
  137. password: 123456
  138. # 连接超时时间
  139. timeout: 10s
  140. lettuce:
  141. pool:
  142. # 连接池中的最小空闲连接
  143. min-idle: 0
  144. # 连接池中的最大空闲连接
  145. max-idle: 8
  146. # 连接池的最大数据库连接数
  147. max-active: 8
  148. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  149. max-wait: -1ms
  150. # token配置
  151. token:
  152. # 令牌自定义标识
  153. header: Authorization
  154. # 令牌密钥
  155. secret: smadedloswxcxstufwzgd
  156. # 令牌有效期(默认30分钟)
  157. expireTime: 10080
  158. ## MyBatis配置
  159. #mybatis:
  160. # # 搜索指定包别名
  161. # typeAliasesPackage: com.ylx.**.domain
  162. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  163. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  164. # # 加载全局的配置文件
  165. # configLocation: classpath:mybatis/mybatis-config.xml
  166. # MyBatis Plus配置
  167. mybatis-plus:
  168. # 搜索指定包别名
  169. typeAliasesPackage: com.ylx.**.domain
  170. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  171. mapperLocations: classpath*:mapper/**/*Mapper.xml
  172. # 加载全局的配置文件
  173. configLocation: classpath:mybatis/mybatis-config.xml
  174. global-config:
  175. db-config:
  176. logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  177. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  178. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  179. # PageHelper分页插件
  180. pagehelper:
  181. helperDialect: mysql
  182. supportMethodsArguments: true
  183. params: count=countSql
  184. # Swagger配置
  185. swagger:
  186. # 是否开启swagger
  187. enabled: true
  188. # 请求前缀
  189. pathMapping: /dev-api
  190. # 车费计算
  191. fare:
  192. # 起步价
  193. base-fare: 9.3
  194. # 超出起步价后每公里费用
  195. additional-fare-per-km: 2.4
  196. # 起步距离(公里)
  197. base-distance-km: 3
  198. # 微信小程序
  199. wx:
  200. base-url: https://api.weixin.qq.com/
  201. # AppID(小程序ID)
  202. app-id: wxb2ae0f4ee11e8705
  203. # AppSecret(小程序密钥)
  204. app-secret: 28504227c2662cfb1b39a5baf750bb59
  205. # 商户号
  206. # mch-id: 1675015090
  207. mch-id: 1716293620
  208. # 商户秘钥
  209. #mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
  210. mch-key: 29138927a706e34282df802feacfc18r
  211. # 异步回调地址
  212. notify-url: https://city.baoxianzhanggui.com/nightFragrance/wx/pay/payNotify
  213. # 异步退款回调地址
  214. refund-Notify: https://city.baoxianzhanggui.com/nightFragrance/wx/pay/refundNotify
  215. # 证书地址
  216. cert-path: /nightFragrance/pay/apiclient_cert.pem
  217. # 证书秘钥地址
  218. cert-key-path: /nightFragrance/pay/apiclient_key.pem
  219. # 微信平台证书
  220. plat-form-path: /nightFragrance/pay/plateForm.pem
  221. msgDataFormat: JSON
  222. #通知类型1
  223. template_id_1: KPo5KM1R-_A6iBWOZpnA_J1w7ybORWboYqJX-PN0diQ
  224. #通知类型2
  225. wx.miniapp.msg.template_id_2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  226. # 微信公众号
  227. wechat:
  228. # mpAppId: wxa72f643173a90106
  229. # mpAppSecret: 6ceb4647506a4f1654bb10773b227357
  230. # 广誉源
  231. mpAppId: wx9dc677bd41e82569
  232. mpAppSecret: 346ed2d83c0cab7816c73a1df2e04df3
  233. # 获取code
  234. get-code-url: https://open.weixin.qq.com/connect/oauth2/authorize
  235. # 回调地址
  236. redirect-url: https://city.baoxianzhanggui.com/nightFragrance/sq/getAccessToken
  237. # 回调地址
  238. access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
  239. # 消息模版ID订单待接单通知
  240. template-id-1: HU2LfMIes91Au9kxR3VEoNYuMayxZoPNsFRfWNCmKrQ
  241. # 入驻平台审核通知
  242. template-id-2: els5FNc0BtFbSKhxIjbzqGX_9FmxAWyBhjL95qVevYE
  243. menu: "{\"button\":[{\"type\":\"view\",\"name\":\"立即下单\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/\"},{\"type\":\"view\",\"name\":\"查看商户\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/#/pages/identify/identify\"},{\"name\":\"更多\",\"sub_button\":[{\"type\":\"view\",\"name\":\"技师招募\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/#/pages/join/first_join\"},{\"type\":\"view\",\"name\":\"招商合作\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/#/pages/join/teamwork\"},{\"type\":\"view\",\"name\":\"投诉举报\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/#/pages/join/feedback\"},{\"type\":\"view\",\"name\":\"了解我们\",\"url\":\"https://city.baoxianzhanggui.com/fragrance/#/pages/join/understand\"}]}]}"
  244. # 防止XSS攻击
  245. xss:
  246. # 过滤开关
  247. enabled: true
  248. # 排除链接(多个用逗号分隔)
  249. excludes: /system/notice
  250. # 匹配链接
  251. urlPatterns: /system/*,/monitor/*,/tool/*
  252. # ylx456