You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.4 KiB

  1. # Gin-Vue-Admin Global Configuration
  2. # jwt configuration
  3. jwt:
  4. signing-key: 'qmPlus'
  5. expires-time: 604800
  6. buffer-time: 86400
  7. # zap logger configuration
  8. zap:
  9. level: 'info'
  10. format: 'console'
  11. prefix: '[GIN-VUE-ADMIN]'
  12. director: 'log'
  13. link-name: 'latest_log'
  14. show-line: true
  15. encode-level: 'LowercaseColorLevelEncoder'
  16. stacktrace-key: 'stacktrace'
  17. log-in-console: true
  18. # redis configuration
  19. redis:
  20. db: 0
  21. addr: '127.0.0.1:6379'
  22. password: ''
  23. # email configuration
  24. email:
  25. to: 'xxx@qq.com'
  26. port: 465
  27. from: 'xxx@163.com'
  28. host: 'smtp.163.com'
  29. is-ssl: true
  30. secret: 'xxx'
  31. nickname: 'test'
  32. # casbin configuration
  33. casbin:
  34. model-path: './resource/rbac_model.conf'
  35. # system configuration
  36. system:
  37. env: 'public' # Change to "develop" to skip authentication for development mode
  38. addr: 8888
  39. db-type: 'mysql'
  40. oss-type: 'local' # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
  41. use-multipoint: false
  42. # captcha configuration
  43. captcha:
  44. key-long: 6
  45. img-width: 240
  46. img-height: 80
  47. # mysql connect configuration
  48. mysql:
  49. path: ''
  50. config: ''
  51. db-name: ''
  52. username: ''
  53. password: ''
  54. max-idle-conns: 10
  55. max-open-conns: 100
  56. log-mode: false
  57. log-zap: ""
  58. # local configuration
  59. local:
  60. path: 'uploads/file'
  61. # autocode configuration
  62. autocode:
  63. root: ""
  64. server: /server
  65. server-api: /api/v1
  66. server-initialize: /initialize
  67. server-model: /model
  68. server-request: /model/request/
  69. server-router: /router
  70. server-service: /service
  71. web: /web/src
  72. web-api: /api
  73. web-flow: /view
  74. web-form: /view
  75. web-table: /view
  76. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket �?域名地址)
  77. qiniu:
  78. zone: 'ZoneHuadong'
  79. bucket: 'qm-plus-img'
  80. img-path: 'http://qmplusimg.henrongyi.top'
  81. use-https: false
  82. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  83. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  84. use-cdn-domains: false
  85. # aliyun oss configuration
  86. aliyun-oss:
  87. endpoint: 'yourEndpoint'
  88. access-key-id: 'yourAccessKeyId'
  89. access-key-secret: 'yourAccessKeySecret'
  90. bucket-name: 'yourBucketName'
  91. bucket-url: 'yourBucketUrl'
  92. # tencent cos configuration
  93. tencent-cos:
  94. bucket: 'xxxxx-10005608'
  95. region: 'ap-shanghai'
  96. secret-id: 'xxxxxxxx'
  97. secret-key: 'xxxxxxxx'
  98. base-url: 'https://gin.vue.admin'
  99. path-prefix: 'gin-vue-admin'
  100. # excel configuration
  101. excel:
  102. dir: './resource/excel/'