config.yaml 4.6 KB

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