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.

78 lines
1.7 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: '127.0.0.1:3306'
  50. config: 'charset=utf8mb4&parseTime=True&loc=Local'
  51. db-name: 'qmPlus'
  52. username: 'root'
  53. password: 'Aa@6447985'
  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. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket �?域名地址)
  62. qiniu:
  63. zone: 'ZoneHuadong'
  64. bucket: 'qm-plus-img'
  65. img-path: 'http://qmplusimg.henrongyi.top'
  66. use-https: false
  67. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  68. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  69. use-cdn-domains: false