application-dev.yml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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: E:/nightFragrance/uploadPath
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8087
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # 连接数满后的排队数,默认为100
  26. accept-count: 1000
  27. threads:
  28. # tomcat最大线程数,默认为200
  29. max: 800
  30. # Tomcat启动初始化的线程数,默认值10
  31. min-spare: 100
  32. # 日志配置
  33. logging:
  34. level:
  35. com.ylx: debug
  36. org.springframework: warn
  37. # 用户配置
  38. user:
  39. password:
  40. # 密码最大错误次数
  41. maxRetryCount: 5
  42. # 密码锁定时间(默认10分钟)
  43. lockTime: 10
  44. # Spring配置
  45. spring:
  46. # 资源信息
  47. messages:
  48. # 国际化资源文件路径
  49. basename: i18n/messages
  50. datasource:
  51. type: com.alibaba.druid.pool.DruidDataSource
  52. driverClassName: com.mysql.cj.jdbc.Driver
  53. druid:
  54. # 主库数据源
  55. master:
  56. url: jdbc:mysql://rm-d7q5a6qathaxdzhw.mysql.zhangbei.rds.aliyuncs.com:3306/guangyuyuan?serverTimezone=Asia/Shanghai&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true
  57. username: sxzgkj
  58. password: 'Iy$@$koH@oURxyvw'
  59. slave:
  60. # 从数据源开关/默认关闭
  61. enabled: false
  62. url:
  63. username:
  64. password:
  65. # 初始连接数
  66. initialSize: 5
  67. # 最小连接池数量
  68. minIdle: 10
  69. # 最大连接池数量
  70. maxActive: 20
  71. # 配置获取连接等待超时的时间
  72. maxWait: 60000
  73. # 配置连接超时时间
  74. connectTimeout: 30000
  75. # 配置网络超时时间
  76. socketTimeout: 60000
  77. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  78. timeBetweenEvictionRunsMillis: 60000
  79. # 配置一个连接在池中最小生存的时间,单位是毫秒
  80. minEvictableIdleTimeMillis: 300000
  81. # 配置一个连接在池中最大生存的时间,单位是毫秒
  82. maxEvictableIdleTimeMillis: 900000
  83. # 配置检测连接是否有效
  84. validationQuery: SELECT 1 FROM DUAL
  85. testWhileIdle: true
  86. testOnBorrow: false
  87. testOnReturn: false
  88. webStatFilter:
  89. enabled: true
  90. statViewServlet:
  91. enabled: true
  92. # 设置白名单,不填则允许所有访问
  93. allow:
  94. url-pattern: /druid/*
  95. # 控制台管理用户名和密码
  96. login-username: ruoyi
  97. login-password: 123456
  98. filter:
  99. stat:
  100. enabled: true
  101. # 慢SQL记录
  102. log-slow-sql: true
  103. slow-sql-millis: 1000
  104. merge-sql: true
  105. wall:
  106. config:
  107. multi-statement-allow: true
  108. # 文件上传
  109. servlet:
  110. multipart:
  111. # 单个文件大小
  112. max-file-size: 50MB
  113. # 设置总上传的文件大小
  114. max-request-size: 100MB
  115. enabled: true
  116. # 服务模块
  117. devtools:
  118. restart:
  119. # 热部署开关
  120. enabled: false
  121. # redis 配置
  122. redis:
  123. # 地址
  124. host: 127.0.0.1
  125. # 端口,默认为6379
  126. port: 6379
  127. # 数据库索引
  128. database: 1
  129. # 密码
  130. password: '123456'
  131. # 连接超时时间
  132. timeout: 10s
  133. lettuce:
  134. pool:
  135. # 连接池中的最小空闲连接
  136. min-idle: 0
  137. # 连接池中的最大空闲连接
  138. max-idle: 8
  139. # 连接池的最大数据库连接数
  140. max-active: 8
  141. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  142. max-wait: -1ms
  143. # token配置
  144. token:
  145. # 令牌自定义标识
  146. header: Authorization
  147. # 令牌密钥
  148. secret: smadedloswxcxstufwzgd
  149. # 令牌有效期(默认30分钟)1周
  150. expireTime: 10080
  151. ## MyBatis配置
  152. #mybatis:
  153. # # 搜索指定包别名
  154. # typeAliasesPackage: com.ylx.**.domain
  155. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  156. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  157. # # 加载全局的配置文件
  158. # configLocation: classpath:mybatis/mybatis-config.xml
  159. # MyBatis Plus配置
  160. mybatis-plus:
  161. # 搜索指定包别名
  162. typeAliasesPackage: com.ylx.**.domain
  163. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  164. mapperLocations: classpath*:mapper/**/*Mapper.xml
  165. # 加载全局的配置文件
  166. configLocation: classpath:mybatis/mybatis-config.xml
  167. global-config:
  168. db-config:
  169. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  170. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  171. # PageHelper分页插件
  172. pagehelper:
  173. helperDialect: mysql
  174. supportMethodsArguments: true
  175. params: count=countSql
  176. # Swagger配置
  177. swagger:
  178. # 是否开启swagger
  179. enabled: true
  180. # 请求前缀
  181. pathMapping: /dev-api
  182. # 车费计算
  183. fare:
  184. # 起步价
  185. base-fare: 9.3
  186. # 超出起步价后每公里费用
  187. additional-fare-per-km: 2.4
  188. # 起步距离(公里)
  189. base-distance-km: 3
  190. # 微信小程序
  191. wx:
  192. base-url: https://api.weixin.qq.com/
  193. # AppID(小程序ID)
  194. app-id: wxb2ae0f4ee11e8705
  195. # app-id: wxe8661ef542cd963c
  196. # AppSecret(小程序密钥)
  197. app-secret: 28504227c2662cfb1b39a5baf750bb59
  198. # app-secret: 7439a36812c1850d060567bce51159ec
  199. # 商户号
  200. mch-id: 1716293620
  201. # 商户秘钥
  202. mch-key: 29138927a706e34282df802feacfc18r
  203. # 异步回调地址
  204. notify-url: https://48131076.r21.cpolar.top/wx/pay/payNotify
  205. # 异步退款回调地址
  206. refund-Notify: https://48131076.r21.cpolar.top/wx/pay/refundNotify
  207. # # 证书地址
  208. # cert-path: D:/1675015090_20240424_cert/apiclient_cert.pem
  209. # # 证书秘钥地址
  210. # cert-key-path: D:/1675015090_20240424_cert/apiclient_key.pem
  211. # # 微信平台证书
  212. # plat-form-path: D:/1675015090_20240424_cert/plateForm.pem
  213. # 证书地址
  214. cert-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/apiclient_cert.pem
  215. # 证书秘钥地址
  216. cert-key-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/apiclient_key.pem
  217. # 微信平台证书
  218. plat-form-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/plateForm.pem
  219. #通知类型1
  220. template_id_1: KPo5KM1R-_A6iBWOZpnA_J1w7ybORWboYqJX-PN0diQ
  221. #通知类型2
  222. wx.miniapp.msg.template_id_2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  223. msgDataFormat: JSON
  224. # 微信公众号
  225. wechat:
  226. # mpAppId: wxa408092ddcec15b8
  227. # mpAppSecret: 3d0953e32e84180b945ace15050365c6
  228. mpAppId: wx9dc677bd41e82569
  229. mpAppSecret: 346ed2d83c0cab7816c73a1df2e04df3
  230. # 获取code
  231. get-code-url: https://open.weixin.qq.com/connect/oauth2/authorize
  232. # 回调地址
  233. redirect-url: http://7tjvt8639914.vicp.fun/sq/getAccessToken
  234. # 回调地址
  235. access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
  236. # 消息模版ID
  237. template-id-1: HU2LfMIes91Au9kxR3VEoNYuMayxZoPNsFRfWNCmKrQ
  238. # 用户侧
  239. # 已接单提醒消息模版ID
  240. userTemplate1: P4C-9-BEOUbLgvRbS5ea83lvwDWruH9So2Al2-uFk9M
  241. # 订单完成提醒消息模版ID
  242. userTemplate2: ZGI3Bto2fZaGjXPaw5ad04GgDhVHkqWxyyIULDSAuao
  243. # 取消订单提醒消息模版ID
  244. userTemplate3: Ed4c0ra3qFl-WjgaxomYQUZ2g45XxAjxUVhIXFHXQ8U
  245. # 技师侧
  246. # 待接单提醒消息模版ID
  247. techTemplate1: xPuD5uBpRj7ui79pIWQgDngiOysW0zS7bq1yPyGNhdw
  248. # 订单完成提醒消息模版ID
  249. techTemplate2: P4C-9-BEOUbLgvRbS5ea8x98iG2J6_QeGlKn-C0iNNk
  250. # 取消订单提醒消息模版ID
  251. techTemplate3: Ed4c0ra3qFl-WjgaxomYQWRCgjkO5NfJkibcFOTx3-Q
  252. # 防止XSS攻击
  253. xss:
  254. # 过滤开关
  255. enabled: true
  256. # 排除链接(多个用逗号分隔)
  257. excludes: /system/notice
  258. # 匹配链接
  259. urlPatterns: /system/*,/monitor/*,/tool/*
  260. # FFmpeg 配置
  261. ffmpeg:
  262. # FFmpeg 可执行文件路径(Windows 下需要使用 .exe 扩展名)
  263. path: ffmpeg
  264. # 是否启用Docker模式(Linux服务器环境设置为true)
  265. docker-enabled: false
  266. # Docker镜像名称
  267. docker-image: jrottenberg/ffmpeg
  268. # Docker容器内工作目录
  269. container-work-dir: /data
  270. # 宿主机路径映射(Docker volume映射的源路径)
  271. host-volume-path: /usr/local/java/nightFragrance/uploadPath
  272. # 自动分账超时时间_hour
  273. hCount:
  274. 48
  275. # 自动分账佣金比例 商户
  276. percent:
  277. 0.06
  278. hPercent:
  279. 0.94
  280. # 高德地图
  281. amap:
  282. apiKey: 5457092e6c62b83c1b2e45dbe973d858
  283. remote:
  284. # 用户中心
  285. user-center:
  286. # 基础URL
  287. base-url: https://test.baoxianzhanggui.com/user-api/usercenter
  288. # 本地生活
  289. local-live:
  290. # 基础URL
  291. base-url: https://life.baoxianzhanggui.com/locallive-pro-java
  292. # base-url: http://192.168.1.190:8082/jeecg-boot
  293. #本地生活平台id
  294. client-id: bdsh-X9yZ1wV3uT5sR7qP9o
  295. # 广誉远
  296. night-fragrance:
  297. client-id: gyy-aB4cD6eF8gH0iJ2kL4