config.yaml 2.5 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:
S
songzhibin97 已提交
57 58
  config: charset=utf8mb4&parseTime=True&loc=Local
  db-name: gva111
59
  log-mode: false
60
  log-zap: ""
S
songzhibin97 已提交
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
  max-idle-conns: 10
  max-open-conns: 100
  password: "123456"
  path: 10.43.1.71:3306
  username: root

autoCode:
  root: ''
  server: '/server'
  server-api: '/api/v1'
  server-model: '/model'
  server-request: '/model/request/'
  server-router: '/router'
  server-service: '/service'

  web: '/web/src'
  web-api: '/api'
  web-form: '/view/file1'
  web-table: '/view/file1'
  web-flow: '/view/file1'
81

82 83 84
# local configuration
local:
  path: 'uploads/file'
85

86
# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket �?域名地址)
87
qiniu:
88
  zone: 'ZoneHuadong'
89 90
  bucket: 'qm-plus-img'
  img-path: 'http://qmplusimg.henrongyi.top'
91 92 93
  use-https: false
  access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
wonain's avatar
wonain 已提交
94 95
  use-cdn-domains: false

96

Y
yang.liu06 已提交
97 98 99 100 101 102 103 104
# aliyun oss configuration
aliyun-oss:
  endpoint: 'yourEndpoint'
  access-key-id: 'yourAccessKeyId'
  access-key-secret: 'yourAccessKeySecret'
  bucket-name: 'yourBucketName'
  bucket-url: 'yourBucketUrl'

M
MUHM 已提交
105 106 107 108 109 110 111 112 113
# tencent cos configuration
tencent-cos:
  bucket: 'xxxxx-10005608'
  region: 'ap-shanghai'
  secret-id: 'xxxxxxxx'
  secret-key: 'xxxxxxxx'
  base-url: 'https://gin.vue.admin'
  path-prefix: 'gin-vue-admin'

wonain's avatar
wonain 已提交
114 115 116
# excel configuration
excel:
  dir: './resource/excel/'