config.yaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. autocode:
  9. web: web/src
  10. root: F:\web\pig-rfid
  11. server: server
  12. module: github.com/flipped-aurora/gin-vue-admin/server
  13. ai-path: ""
  14. aws-s3:
  15. bucket: xxxxx-10005608
  16. region: ap-shanghai
  17. endpoint: ""
  18. secret-id: your-secret-id
  19. secret-key: your-secret-key
  20. base-url: https://gin.vue.admin
  21. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  22. s3-force-path-style: false
  23. disable-ssl: false
  24. captcha:
  25. key-long: 6
  26. img-width: 240
  27. img-height: 80
  28. open-captcha: 0
  29. open-captcha-timeout: 3600
  30. cloudflare-r2:
  31. bucket: xxxx0bucket
  32. base-url: https://gin.vue.admin.com
  33. path: uploads
  34. account-id: xxx_account_id
  35. access-key-id: xxx_key_id
  36. secret-access-key: xxx_secret_key
  37. cors:
  38. mode: strict-whitelist
  39. whitelist:
  40. - allow-origin: example1.com
  41. allow-methods: POST, GET
  42. allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id
  43. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  44. allow-credentials: true
  45. - allow-origin: example2.com
  46. allow-methods: GET, POST
  47. allow-headers: content-type
  48. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  49. allow-credentials: true
  50. db-list:
  51. - type: ""
  52. alias-name: ""
  53. prefix: ""
  54. port: ""
  55. config: ""
  56. db-name: ""
  57. username: ""
  58. password: ""
  59. path: ""
  60. engine: ""
  61. log-mode: ""
  62. max-idle-conns: 10
  63. max-open-conns: 100
  64. singular: false
  65. log-zap: false
  66. disable: true
  67. disk-list:
  68. - mount-point: /
  69. email:
  70. to: xxx@qq.com
  71. from: xxx@163.com
  72. host: smtp.163.com
  73. secret: xxx
  74. nickname: test
  75. port: 465
  76. is-ssl: true
  77. is-loginauth: false
  78. excel:
  79. dir: ./resource/excel/
  80. hua-wei-obs:
  81. path: you-path
  82. bucket: you-bucket
  83. endpoint: you-endpoint
  84. access-key: you-access-key
  85. secret-key: you-secret-key
  86. jwt:
  87. signing-key: 94b348f5-7bc8-4c17-90af-f3c09480c91b
  88. expires-time: 7d
  89. buffer-time: 1d
  90. issuer: qmPlus
  91. local:
  92. path: uploads/file
  93. store-path: uploads/file
  94. mcp:
  95. name: GVA_MCP
  96. version: v1.0.0
  97. sse_path: /sse
  98. message_path: /message
  99. url_prefix: ""
  100. minio:
  101. endpoint: yourEndpoint
  102. access-key-id: yourAccessKeyId
  103. access-key-secret: yourAccessKeySecret
  104. bucket-name: yourBucketName
  105. use-ssl: false
  106. base-path: ""
  107. bucket-url: http://host:9000/yourBucketName
  108. mongo:
  109. coll: ""
  110. options: ""
  111. database: ""
  112. username: ""
  113. password: ""
  114. auth-source: ""
  115. min-pool-size: 0
  116. max-pool-size: 100
  117. socket-timeout-ms: 0
  118. connect-timeout-ms: 0
  119. is-zap: false
  120. hosts:
  121. - host: ""
  122. port: ""
  123. mssql:
  124. prefix: ""
  125. port: ""
  126. config: ""
  127. db-name: ""
  128. username: ""
  129. password: ""
  130. path: ""
  131. engine: ""
  132. log-mode: ""
  133. max-idle-conns: 10
  134. max-open-conns: 100
  135. singular: false
  136. log-zap: false
  137. mysql:
  138. prefix: ""
  139. port: "13306"
  140. config: charset=utf8mb4&parseTime=True&loc=Local
  141. db-name: rfid
  142. username: root
  143. password: Aa@6447985
  144. path: 127.0.0.1
  145. engine: ""
  146. log-mode: info
  147. max-idle-conns: 10
  148. max-open-conns: 100
  149. singular: false
  150. log-zap: true
  151. oracle:
  152. prefix: ""
  153. port: ""
  154. config: ""
  155. db-name: ""
  156. username: ""
  157. password: ""
  158. path: ""
  159. engine: ""
  160. log-mode: ""
  161. max-idle-conns: 10
  162. max-open-conns: 100
  163. singular: false
  164. log-zap: false
  165. pgsql:
  166. prefix: ""
  167. port: ""
  168. config: ""
  169. db-name: ""
  170. username: ""
  171. password: ""
  172. path: ""
  173. engine: ""
  174. log-mode: ""
  175. max-idle-conns: 10
  176. max-open-conns: 100
  177. singular: false
  178. log-zap: false
  179. qiniu:
  180. zone: ZoneHuaDong
  181. bucket: ""
  182. img-path: ""
  183. access-key: ""
  184. secret-key: ""
  185. use-https: false
  186. use-cdn-domains: false
  187. redis:
  188. name: ""
  189. addr: 127.0.0.1:6379
  190. password: ""
  191. db: 0
  192. useCluster: false
  193. clusterAddrs:
  194. - 172.21.0.3:7000
  195. - 172.21.0.4:7001
  196. - 172.21.0.2:7002
  197. redis-list:
  198. - name: cache
  199. addr: 127.0.0.1:6379
  200. password: ""
  201. db: 0
  202. useCluster: false
  203. clusterAddrs:
  204. - 172.21.0.3:7000
  205. - 172.21.0.4:7001
  206. - 172.21.0.2:7002
  207. sqlite:
  208. prefix: ""
  209. port: ""
  210. config: ""
  211. db-name: ""
  212. username: ""
  213. password: ""
  214. path: ""
  215. engine: ""
  216. log-mode: ""
  217. max-idle-conns: 10
  218. max-open-conns: 100
  219. singular: false
  220. log-zap: false
  221. system:
  222. db-type: mysql
  223. oss-type: local
  224. router-prefix: ""
  225. addr: 8888
  226. iplimit-count: 15000
  227. iplimit-time: 3600
  228. use-multipoint: false
  229. use-redis: false
  230. use-mongo: false
  231. use-strict-auth: false
  232. tencent-cos:
  233. bucket: xxxxx-10005608
  234. region: ap-shanghai
  235. secret-id: your-secret-id
  236. secret-key: your-secret-key
  237. base-url: https://gin.vue.admin
  238. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  239. zap:
  240. level: info
  241. prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
  242. format: console
  243. director: log
  244. encode-level: LowercaseColorLevelEncoder
  245. stacktrace-key: stacktrace
  246. show-line: true
  247. log-in-console: true
  248. retention-day: -1