config.yaml 1.9 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
  config: 'loc=Asia/Shanghai'

# oss configuration

# 切换本地与七牛云上传,分配头像和文件路径
localupload:
32
  local: false
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  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
  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'
67 68 69 70
  file: 'DEBUG'

# zap logger configuration
zap:
71 72 73 74 75
  # 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
  level: 'debug'
  # console: 控制台, json: json格式输出
  format: 'console'
  prefix: '[GIN-VUE-ADMIN]'
76 77
  director: 'log'
  link_name: 'latest_log'
78
  show_line: true
79 80 81
  # LowercaseLevelEncoder:小写, LowercaseColorLevelEncoder:小写带颜色,CapitalLevelEncoder: 大写, CapitalColorLevelEncoder: 大写带颜色,
  encode_level: 'LowercaseColorLevelEncoder'
  stacktrace_key: 'stacktrace'
82
  log_in_console: true