application-dev.yml 8.7 KB

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