config.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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: 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/dept
  92. store-path: uploads/dept
  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_veterans
  127. username: root
  128. password: 123456
  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. db: 1
  174. addr: 127.0.0.1:6379
  175. password:
  176. sqlite:
  177. prefix: ""
  178. port: ""
  179. config: ""
  180. db-name: ""
  181. username: ""
  182. password: ""
  183. path: ""
  184. engine: ""
  185. log-mode: ""
  186. max-idle-conns: 10
  187. max-open-conns: 100
  188. singular: false
  189. log-zap: false
  190. system:
  191. db-type: mysql
  192. oss-type: local
  193. router-prefix: ""
  194. addr: 8888
  195. iplimit-count: 15000
  196. iplimit-time: 3600
  197. use-multipoint: false
  198. use-redis: true
  199. use-mongo: false
  200. tencent-cos:
  201. bucket: xxxxx-10005608
  202. region: ap-shanghai
  203. secret-id: your-secret-id
  204. secret-key: your-secret-key
  205. base-url: https://gin.vue.admin
  206. path-prefix: server
  207. zap:
  208. level: info
  209. prefix: '[server]'
  210. format: console
  211. director: log
  212. encode-level: LowercaseColorLevelEncoder
  213. stacktrace-key: stacktrace
  214. max-age: 0
  215. show-line: true
  216. log-in-console: true