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

# casbin configuration
4
casbin:
5 6 7
  model-path: './resource/rbac_model.conf'

# jwt configuration
8
jwt:
9 10 11
  signing-key: 'qmPlus'

# mysql connect configuration
12
mysql:
13
  username: root
14 15 16 17
  password: 'Aa@6447985'
  path: '127.0.0.1:3306'
  db-name: 'qmPlus'
  config: 'charset=utf8mb4&parseTime=True&loc=Local'
18 19 20
  max-idle-conns: 10
  max-open-conns: 10
  log-mode: false
21 22

#sqlite 配置
23 24 25
sqlite:
  path: db.db
  log-mode: true
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  config: 'loc=Asia/Shanghai'

# oss configuration

# 切换本地与七牛云上传,分配头像和文件路径
localupload:
  local: true
  avatar-path: uploads/avatar
  file-path: uploads/file

# 请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址
qiniu:
  access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  bucket: 'qm-plus-img'
  img-path: 'http://qmplusimg.henrongyi.top'

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

# system configuration
50
system:
51
  use-multipoint: false
52
  env: 'public'  # Change to "develop" to skip authentication for development mode
53
  addr: 8888
54 55 56 57 58 59 60 61 62 63 64 65 66 67
  db-type: "mysql"  # support mysql/sqlite

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

# logger configuration
log:
  prefix: '[GIN-VUE-ADMIN]'
  log-file: true
  stdout: 'DEBUG'
  file: 'DEBUG'