config.yaml 1.8 KB
Newer Older
1 2
# Gin-Vue-Admin Global Configuration

3 4 5
# jwt configuration
jwt:
  signing-key: 'qmPlus'
6 7
  expires-time: 604800
  buffer-time: 86400
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

# zap logger configuration
zap:
  level: 'info'
  format: 'console'
  prefix: '[GIN-VUE-ADMIN]'
  director: 'log'
  link-name: 'latest_log'
  show-line: true
  encode-level: 'LowercaseColorLevelEncoder'
  stacktrace-key: 'stacktrace'
  log-in-console: true

# redis configuration
redis:
  db: 0
  addr: '127.0.0.1:6379'
  password: ''

# email configuration
email:
  to: 'xxx@qq.com'
  port: 465
  from: 'xxx@163.com'
  host: 'smtp.163.com'
  is-ssl: true
  secret: 'xxx'
  nickname: 'test'

37
# casbin configuration
38
casbin:
39 40
  model-path: './resource/rbac_model.conf'

41 42 43 44 45
# system configuration
system:
  env: 'public'  # Change to "develop" to skip authentication for development mode
  addr: 8888
  db-type: 'mysql'
46
  oss-type: 'local'    # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
47 48 49 50 51 52 53
  use-multipoint: false

# captcha configuration
captcha:
  key-long: 6
  img-width: 240
  img-height: 80
54 55

# mysql connect configuration
56
mysql:
57 58
  path: '127.0.0.1:3306'
  config: 'charset=utf8mb4&parseTime=True&loc=Local'
59 60
  db-name: 'qmPlus'
  username: 'root'
61
  password: 'Aa@6447985'
62
  max-idle-conns: 10
63
  max-open-conns: 100
64
  log-mode: false
65
  log-zap: ""
66

67 68 69
# local configuration
local:
  path: 'uploads/file'
70

71
# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket �?域名地址)
72
qiniu:
73
  zone: 'ZoneHuadong'
74 75
  bucket: 'qm-plus-img'
  img-path: 'http://qmplusimg.henrongyi.top'
76 77 78
  use-https: false
  access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
wonain's avatar
wonain 已提交
79 80 81 82 83
  use-cdn-domains: false

# excel configuration
excel:
  dir: './resource/excel/'