application-dev.yml 9.1 KB

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