config.yaml 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# Gin-Vue-Admin Global Configuration

# casbin configuration
casbin:
    model-path: './resource/rbac_model.conf'

# jwt configuration
jwt:
    signing-key: 'qmPlus'

# mysql connect configuration
mysql:
    username: root
G
Granty1 已提交
14
    password: 'Aa@6447985'
15 16 17 18 19
    path: '127.0.0.1:3306'
    db-name: 'qmPlus'
    config: 'charset=utf8&parseTime=True&loc=Local'
    max-idle-conns: 10
    max-open-conns: 10
Mr.奇淼('s avatar
Mr.奇淼( 已提交
20
    log-mode: false
21

R
rikugun 已提交
22 23
#sqlite 配置
sqlite:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
24
    path: db.db
R
rikugun 已提交
25 26
    log-mode: true
    config: 'loc=Asia/Shanghai'
27

28 29 30 31
# oss configuration
qiniu:
    access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
    secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
32 33
    bucket: 'qm-plus-img'
    img-path: 'http://qmplusimg.henrongyi.top'
34 35 36
# redis configuration
redis:
    addr: '127.0.0.1:6379'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
37
    password: ''
38 39 40 41 42
    db: 0

# system configuration
system:
    use-multipoint: false
43
    env: 'public'  # Change to "develop" to skip authentication for development mode
44
    addr: 8888
R
rikugun 已提交
45
    db-type: "mysql"  # support mysql/sqlite
46 47 48

# captcha configuration
captcha:
49
    key-long: 4
50 51 52 53 54 55 56 57
    img-width: 120
    img-height: 40

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