config.yaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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: smart_intersection2.0
  127. username: root
  128. # password: qWo2#inH7Bw28#M5
  129. password: 123456
  130. path: 127.0.0.1
  131. engine: ""
  132. log-mode: error
  133. max-idle-conns: 10
  134. max-open-conns: 100
  135. singular: false
  136. log-zap: false
  137. oracle:
  138. prefix: ""
  139. port: ""
  140. config: ""
  141. db-name: ""
  142. username: ""
  143. password: ""
  144. path: ""
  145. engine: ""
  146. log-mode: ""
  147. max-idle-conns: 10
  148. max-open-conns: 100
  149. singular: false
  150. log-zap: false
  151. pgsql:
  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. qiniu:
  166. zone: ZoneHuaDong
  167. bucket: ""
  168. img-path: ""
  169. access-key: ""
  170. secret-key: ""
  171. use-https: false
  172. use-cdn-domains: false
  173. redis:
  174. addr: 127.0.0.1:6379
  175. password: ""
  176. db: 0
  177. useCluster: false
  178. clusterAddrs:
  179. - 172.21.0.3:7000
  180. - 172.21.0.4:7001
  181. - 172.21.0.2:7002
  182. sqlite:
  183. prefix: ""
  184. port: ""
  185. config: ""
  186. db-name: ""
  187. username: ""
  188. password: ""
  189. path: ""
  190. engine: ""
  191. log-mode: ""
  192. max-idle-conns: 10
  193. max-open-conns: 100
  194. singular: false
  195. log-zap: false
  196. system:
  197. db-type: mysql
  198. oss-type: local
  199. router-prefix: ""
  200. addr: 8889
  201. iplimit-count: 15000
  202. iplimit-time: 3600
  203. use-multipoint: false
  204. use-redis: false
  205. use-mongo: false
  206. tencent-cos:
  207. bucket: xxxxx-10005608
  208. region: ap-shanghai
  209. secret-id: your-secret-id
  210. secret-key: your-secret-key
  211. base-url: https://gin.vue.admin
  212. path-prefix: github.com/flipped-aurora/gin-vue-admin/server
  213. zap:
  214. level: info
  215. prefix: '[GVA]'
  216. format: console
  217. director: log
  218. encode-level: LowercaseColorLevelEncoder
  219. stacktrace-key: stacktrace
  220. max-age: 0
  221. show-line: true
  222. log-in-console: false
  223. mqtt:
  224. server: "tcp://118.253.180.18:1883"
  225. id: "smart_intersectionV2.0_local"
  226. user: "admin"
  227. password: "#BgYgMRhshtS0I7E"