config.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. server-model: /model/%s
  10. server-router: /router/%s
  11. server: /server
  12. server-api: /api/v1/%s
  13. server-plug: /plugin/%s
  14. server-initialize: /initialize
  15. root: E:\GoWorks\src\lc_finance
  16. web-table: /view
  17. web: /web/src
  18. server-service: /service/%s
  19. server-request: /model/%s/request/
  20. web-api: /api
  21. web-form: /view
  22. transfer-restart: true
  23. aws-s3:
  24. bucket: xxxxx-10005608
  25. region: ap-shanghai
  26. endpoint: ""
  27. secret-id: your-secret-id
  28. secret-key: your-secret-key
  29. base-url: https://gin.vue.admin
  30. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  31. s3-force-path-style: false
  32. disable-ssl: false
  33. captcha:
  34. key-long: 6
  35. img-width: 240
  36. img-height: 80
  37. open-captcha: 0
  38. open-captcha-timeout: 3600
  39. cors:
  40. mode: strict-whitelist
  41. whitelist:
  42. - allow-origin: example1.com
  43. allow-methods: POST, GET
  44. allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id
  45. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  46. allow-credentials: true
  47. - allow-origin: example2.com
  48. allow-methods: GET, POST
  49. allow-headers: content-type
  50. expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
  51. allow-credentials: true
  52. db-list:
  53. - type: ""
  54. alias-name: ""
  55. prefix: ""
  56. port: ""
  57. config: ""
  58. db-name: ""
  59. username: ""
  60. password: ""
  61. path: ""
  62. engine: ""
  63. log-mode: ""
  64. max-idle-conns: 10
  65. max-open-conns: 100
  66. singular: false
  67. log-zap: false
  68. disable: true
  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. excel:
  78. dir: ./resource/excel/
  79. hua-wei-obs:
  80. path: you-path
  81. bucket: you-bucket
  82. endpoint: you-endpoint
  83. access-key: you-access-key
  84. secret-key: you-secret-key
  85. jwt:
  86. signing-key: 23cb7052-8c96-4acf-9136-578347b2d4c8
  87. expires-time: 7d
  88. buffer-time: 1d
  89. issuer: qmPlus
  90. local:
  91. path: uploads/file
  92. store-path: uploads/file
  93. mongo:
  94. coll: ""
  95. options: ""
  96. database: ""
  97. username: ""
  98. password: ""
  99. auth-source: ""
  100. min-pool-size: 0
  101. max-pool-size: 100
  102. socket-timeout-ms: 0
  103. connect-timeout-ms: 0
  104. is-zap: false
  105. hosts:
  106. - host: ""
  107. port: ""
  108. mssql:
  109. prefix: ""
  110. port: ""
  111. config: ""
  112. db-name: ""
  113. username: ""
  114. password: ""
  115. path: ""
  116. engine: ""
  117. log-mode: ""
  118. max-idle-conns: 10
  119. max-open-conns: 100
  120. singular: false
  121. log-zap: false
  122. mysql:
  123. prefix: ""
  124. port: "3306"
  125. config: charset=utf8mb4&parseTime=True&loc=Local
  126. db-name: lc_finance
  127. username: root
  128. password: root
  129. path: 127.0.0.1
  130. engine: ""
  131. log-mode: error
  132. max-idle-conns: 10
  133. max-open-conns: 100
  134. singular: false
  135. log-zap: false
  136. oracle:
  137. prefix: ""
  138. port: ""
  139. config: ""
  140. db-name: ""
  141. username: ""
  142. password: ""
  143. path: ""
  144. engine: ""
  145. log-mode: ""
  146. max-idle-conns: 10
  147. max-open-conns: 100
  148. singular: false
  149. log-zap: false
  150. pgsql:
  151. prefix: ""
  152. port: ""
  153. config: ""
  154. db-name: ""
  155. username: ""
  156. password: ""
  157. path: ""
  158. engine: ""
  159. log-mode: ""
  160. max-idle-conns: 10
  161. max-open-conns: 100
  162. singular: false
  163. log-zap: false
  164. qiniu:
  165. zone: ZoneHuaDong
  166. bucket: ""
  167. img-path: ""
  168. access-key: ""
  169. secret-key: ""
  170. use-https: false
  171. use-cdn-domains: false
  172. redis:
  173. addr: 127.0.0.1:6379
  174. password: ""
  175. db: 0
  176. useCluster: false
  177. clusterAddrs:
  178. - 172.21.0.3:7000
  179. - 172.21.0.4:7001
  180. - 172.21.0.2:7002
  181. sqlite:
  182. prefix: ""
  183. port: ""
  184. config: ""
  185. db-name: ""
  186. username: ""
  187. password: ""
  188. path: ""
  189. engine: ""
  190. log-mode: ""
  191. max-idle-conns: 10
  192. max-open-conns: 100
  193. singular: false
  194. log-zap: false
  195. system:
  196. db-type: mysql
  197. oss-type: local
  198. router-prefix: ""
  199. addr: 8888
  200. iplimit-count: 15000
  201. iplimit-time: 3600
  202. use-multipoint: false
  203. use-redis: false
  204. use-mongo: false
  205. tencent-cos:
  206. bucket: xxxxx-10005608
  207. region: ap-shanghai
  208. secret-id: your-secret-id
  209. secret-key: your-secret-key
  210. base-url: https://gin.vue.admin
  211. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  212. zap:
  213. level: info
  214. prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
  215. format: console
  216. director: log
  217. encode-level: LowercaseColorLevelEncoder
  218. stacktrace-key: stacktrace
  219. max-age: 0
  220. show-line: true
  221. log-in-console: true