config.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. ffmpeg-path: D:\迅雷下载\ffmpeg-9.0.1-full_build\ffmpeg-9.0.1-full_build\bin\ffmpeg.exe
  52. mjpeg-fps: 8
  53. jpeg-quality: 5
  54. db-list:
  55. - type: ""
  56. alias-name: ""
  57. prefix: ""
  58. port: ""
  59. config: ""
  60. db-name: ""
  61. username: ""
  62. password: ""
  63. path: ""
  64. engine: ""
  65. log-mode: ""
  66. max-idle-conns: 10
  67. max-open-conns: 100
  68. singular: false
  69. log-zap: false
  70. disable: true
  71. email:
  72. to: xxx@qq.com
  73. from: xxx@163.com
  74. host: smtp.163.com
  75. secret: xxx
  76. nickname: test
  77. port: 465
  78. is-ssl: true
  79. excel:
  80. dir: ./resource/excel/
  81. hua-wei-obs:
  82. path: you-path
  83. bucket: you-bucket
  84. endpoint: you-endpoint
  85. access-key: you-access-key
  86. secret-key: you-secret-key
  87. jwt:
  88. signing-key: 23cb7052-8c96-4acf-9136-578347b2d4c8
  89. expires-time: 7d
  90. buffer-time: 1d
  91. issuer: qmPlus
  92. local:
  93. path: uploads/file
  94. store-path: uploads/file
  95. mongo:
  96. coll: ""
  97. options: ""
  98. database: ""
  99. username: ""
  100. password: ""
  101. auth-source: ""
  102. min-pool-size: 0
  103. max-pool-size: 100
  104. socket-timeout-ms: 0
  105. connect-timeout-ms: 0
  106. is-zap: false
  107. hosts:
  108. - host: ""
  109. port: ""
  110. mssql:
  111. prefix: ""
  112. port: ""
  113. config: ""
  114. db-name: ""
  115. username: ""
  116. password: ""
  117. path: ""
  118. engine: ""
  119. log-mode: ""
  120. max-idle-conns: 10
  121. max-open-conns: 100
  122. singular: false
  123. log-zap: false
  124. mysql:
  125. prefix: ""
  126. port: "3306"
  127. config: charset=utf8mb4&parseTime=True&loc=Local
  128. db-name: lc_garage
  129. username: root
  130. password: root
  131. path: 127.0.0.1
  132. engine: ""
  133. log-mode: error
  134. max-idle-conns: 10
  135. max-open-conns: 100
  136. singular: false
  137. log-zap: false
  138. oracle:
  139. prefix: ""
  140. port: ""
  141. config: ""
  142. db-name: ""
  143. username: ""
  144. password: ""
  145. path: ""
  146. engine: ""
  147. log-mode: ""
  148. max-idle-conns: 10
  149. max-open-conns: 100
  150. singular: false
  151. log-zap: false
  152. pgsql:
  153. prefix: ""
  154. port: ""
  155. config: ""
  156. db-name: ""
  157. username: ""
  158. password: ""
  159. path: ""
  160. engine: ""
  161. log-mode: ""
  162. max-idle-conns: 10
  163. max-open-conns: 100
  164. singular: false
  165. log-zap: false
  166. qiniu:
  167. zone: ZoneHuaDong
  168. bucket: ""
  169. img-path: ""
  170. access-key: ""
  171. secret-key: ""
  172. use-https: false
  173. use-cdn-domains: false
  174. redis:
  175. addr: 127.0.0.1:6379
  176. password: ""
  177. db: 0
  178. useCluster: false
  179. clusterAddrs:
  180. - 172.21.0.3:7000
  181. - 172.21.0.4:7001
  182. - 172.21.0.2:7002
  183. sqlite:
  184. prefix: ""
  185. port: ""
  186. config: ""
  187. db-name: lc_garage
  188. username: ""
  189. password: ""
  190. path: ""
  191. engine: ""
  192. log-mode: error
  193. max-idle-conns: 10
  194. max-open-conns: 100
  195. singular: false
  196. log-zap: false
  197. system:
  198. db-type: sqlite
  199. oss-type: local
  200. router-prefix: ""
  201. addr: 8888
  202. iplimit-count: 15000
  203. iplimit-time: 3600
  204. use-multipoint: false
  205. use-redis: false
  206. use-mongo: false
  207. gate-simulator: false # 本地无硬件联调;生产环境必须关闭
  208. debug-routes: false # 默认不注册票机和通道调试接口
  209. tencent-cos:
  210. bucket: xxxxx-10005608
  211. region: ap-shanghai
  212. secret-id: your-secret-id
  213. secret-key: your-secret-key
  214. base-url: https://gin.vue.admin
  215. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  216. zap:
  217. level: info
  218. prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
  219. format: console
  220. director: log
  221. encode-level: LowercaseColorLevelEncoder
  222. stacktrace-key: stacktrace
  223. max-age: 0
  224. show-line: true
  225. log-in-console: true