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

3 4 5 6 7 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
# jwt configuration
jwt:
  signing-key: 'qmPlus'

# 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'

35
# casbin configuration
36
casbin:
37 38
  model-path: './resource/rbac_model.conf'

39 40 41 42 43
# system configuration
system:
  env: 'public'  # Change to "develop" to skip authentication for development mode
  addr: 8888
  db-type: 'mysql'
Sliver_Horn's avatar
Sliver_Horn 已提交
44
  oss-type: 'local'
45 46 47 48 49 50 51
  use-multipoint: false

# captcha configuration
captcha:
  key-long: 6
  img-width: 240
  img-height: 80
52 53

# mysql connect configuration
54
mysql:
55 56
  path: '127.0.0.1:3306'
  config: 'charset=utf8mb4&parseTime=True&loc=Local'
57 58
  db-name: 'qmPlus'
  username: 'root'
1
1319612909 已提交
59
  password: 'root123'
60
  max-idle-conns: 10
61
  max-open-conns: 100
62
  log-mode: false
63

64 65 66
# local configuration
local:
  path: 'uploads/file'
67

68
# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket �?域名地址)
69
qiniu:
70
  zone: 'ZoneHuadong'
71 72
  bucket: 'qm-plus-img'
  img-path: 'http://qmplusimg.henrongyi.top'
73 74 75 76
  use-https: false
  access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  use-cdn-domains: false