application-dev.yml 8.1 KB

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