config.yaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. aliyun-oss:
  2. endpoint: yourEndpoint
  3. access-key-id: yourAccessKeyId
  4. access-key-secret: yourAccessKeySecret
  5. bucket-name: yourBucketName
  6. bucket-url: yourBucketUrl
  7. base-path: yourBasePath
  8. aws-s3:
  9. bucket: xxxxx-10005608
  10. region: ap-shanghai
  11. endpoint: ""
  12. secret-id: your-secret-id
  13. secret-key: your-secret-key
  14. base-url: https://gin.vue.admin
  15. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  16. s3-force-path-style: false
  17. disable-ssl: false
  18. captcha:
  19. key-long: 6
  20. img-width: 240
  21. img-height: 80
  22. open-captcha: 0
  23. open-captcha-timeout: 3600
  24. cors:
  25. mode: allow-all
  26. whitelist:
  27. - allow-origin: example1.com
  28. allow-methods: POST, GET
  29. allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id
  30. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  31. allow-credentials: true
  32. - allow-origin: example2.com
  33. allow-methods: GET, POST
  34. allow-headers: content-type
  35. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  36. allow-credentials: true
  37. mqtt:
  38. enabled: true
  39. embed-broker: true
  40. broker-listen: ":1883"
  41. broker: tcp://127.0.0.1:1883
  42. advertised-host: "192.168.110.164"
  43. advertised-port: 1883
  44. # 内嵌 Broker 当前仅监听普通 TCP;启用外部 TLS Broker 时再改为 true
  45. tls-enabled: false
  46. client-id: smart-parking
  47. username: ""
  48. password: ""
  49. camera:
  50. conversion-mode: system
  51. # Windows paths: use forward slashes, or single quotes around backslashes.
  52. ffmpeg-path: D:/迅雷下载/ffmpeg-9.0.1-full_build/ffmpeg-9.0.1-full_build/bin/ffmpeg.exe
  53. mjpeg-fps: 8
  54. jpeg-quality: 5
  55. db-list:
  56. - type: ""
  57. alias-name: ""
  58. prefix: ""
  59. port: ""
  60. config: ""
  61. db-name: ""
  62. username: ""
  63. password: ""
  64. path: ""
  65. engine: ""
  66. log-mode: ""
  67. max-idle-conns: 10
  68. max-open-conns: 100
  69. singular: false
  70. log-zap: false
  71. disable: true
  72. email:
  73. to: xxx@qq.com
  74. from: xxx@163.com
  75. host: smtp.163.com
  76. secret: xxx
  77. nickname: test
  78. port: 465
  79. is-ssl: true
  80. excel:
  81. dir: ./resource/excel/
  82. hua-wei-obs:
  83. path: you-path
  84. bucket: you-bucket
  85. endpoint: you-endpoint
  86. access-key: you-access-key
  87. secret-key: you-secret-key
  88. jwt:
  89. signing-key: 23cb7052-8c96-4acf-9136-578347b2d4c8
  90. expires-time: 7d
  91. buffer-time: 1d
  92. issuer: qmPlus
  93. local:
  94. path: uploads/file
  95. store-path: uploads/file
  96. mongo:
  97. coll: ""
  98. options: ""
  99. database: ""
  100. username: ""
  101. password: ""
  102. auth-source: ""
  103. min-pool-size: 0
  104. max-pool-size: 100
  105. socket-timeout-ms: 0
  106. connect-timeout-ms: 0
  107. is-zap: false
  108. hosts:
  109. - host: ""
  110. port: ""
  111. mssql:
  112. prefix: ""
  113. port: ""
  114. config: ""
  115. db-name: ""
  116. username: ""
  117. password: ""
  118. path: ""
  119. engine: ""
  120. log-mode: ""
  121. max-idle-conns: 10
  122. max-open-conns: 100
  123. singular: false
  124. log-zap: false
  125. mysql:
  126. prefix: ""
  127. port: "3306"
  128. config: charset=utf8mb4&parseTime=True&loc=Local
  129. db-name: lc_garage
  130. username: root
  131. password: root
  132. path: 127.0.0.1
  133. engine: ""
  134. log-mode: error
  135. max-idle-conns: 10
  136. max-open-conns: 100
  137. singular: false
  138. log-zap: false
  139. oracle:
  140. prefix: ""
  141. port: ""
  142. config: ""
  143. db-name: ""
  144. username: ""
  145. password: ""
  146. path: ""
  147. engine: ""
  148. log-mode: ""
  149. max-idle-conns: 10
  150. max-open-conns: 100
  151. singular: false
  152. log-zap: false
  153. pgsql:
  154. prefix: ""
  155. port: ""
  156. config: ""
  157. db-name: ""
  158. username: ""
  159. password: ""
  160. path: ""
  161. engine: ""
  162. log-mode: ""
  163. max-idle-conns: 10
  164. max-open-conns: 100
  165. singular: false
  166. log-zap: false
  167. qiniu:
  168. zone: ZoneHuaDong
  169. bucket: ""
  170. img-path: ""
  171. access-key: ""
  172. secret-key: ""
  173. use-https: false
  174. use-cdn-domains: false
  175. redis:
  176. addr: 127.0.0.1:6379
  177. password: ""
  178. db: 0
  179. useCluster: false
  180. clusterAddrs:
  181. - 172.21.0.3:7000
  182. - 172.21.0.4:7001
  183. - 172.21.0.2:7002
  184. sqlite:
  185. prefix: ""
  186. port: ""
  187. config: ""
  188. db-name: lc_garage
  189. username: ""
  190. password: ""
  191. # Fill a directory path, not the .db filename. Use D:/data or 'D:\\data'.
  192. path: ""
  193. engine: ""
  194. log-mode: error
  195. max-idle-conns: 1
  196. max-open-conns: 4
  197. singular: false
  198. log-zap: false
  199. system:
  200. db-type: sqlite
  201. oss-type: local
  202. router-prefix: ""
  203. addr: 8888
  204. iplimit-count: 15000
  205. iplimit-time: 3600
  206. use-multipoint: false
  207. use-redis: false
  208. use-mongo: false
  209. gate-simulator: false # 联调临时开启(验证自动开闸链路);生产环境必须关闭
  210. debug-routes: true # 联调期间开启(票机/通道/出口屏调试接口)
  211. # 单一通道(inout)方向推断最小停留分钟数:入场后不足该时长的重复读卡按忽略处理
  212. inout-min-stay-minutes: 1
  213. tencent-cos:
  214. bucket: xxxxx-10005608
  215. region: ap-shanghai
  216. secret-id: your-secret-id
  217. secret-key: your-secret-key
  218. base-url: https://gin.vue.admin
  219. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  220. zap:
  221. level: info
  222. prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
  223. format: console
  224. director: log
  225. encode-level: LowercaseColorLevelEncoder
  226. stacktrace-key: stacktrace
  227. max-age: 0
  228. show-line: true
  229. log-in-console: true
  230. # 出口自助终端(扫码支付出场,见 doc/扫码支付出场设计.md)
  231. exit-kiosk:
  232. # 默认支付渠道:wechat(凭据齐全并启用后)或 mock(联调模拟)
  233. channel: mock
  234. # 非空时出口屏接口需携带 X-Kiosk-Token 请求头
  235. token: ""
  236. # 订单未支付自动过期时间(分钟),过期后屏幕重新计费
  237. order-ttl-minutes: 5
  238. # 页面轮询触发渠道查单的最小间隔(秒)
  239. query-interval-seconds: 2
  240. # 服务端兜底查单定时任务间隔(秒)
  241. job-interval-seconds: 30
  242. # 微信支付 Native 扫码(APIv3)。enabled 且凭据齐全时出口自助支付走真实渠道。
  243. wechat-pay:
  244. enabled: false
  245. app-id: ""
  246. mch-id: ""
  247. serial-no: ""
  248. # 商户 API 证书私钥文件路径(apiclient_key.pem)
  249. private-key-path: ""
  250. api-v3-key: ""
  251. # 支付通知地址(预留挂点;当前以内网查单为主,见 docs/adr/0002)
  252. notify-url: ""
  253. currency: CNY