forked from weiyunxiao/gincms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.example
35 lines (35 loc) · 1.31 KB
/
config.yaml.example
1
2
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
35
App:
Name: gincms
Env: public #开发环境:dev,正式环境:public
LogPath: "log" #日志存放目录
OssType: "local" #文件上传类型
UploadDir: "./upload" #配置上传目录
LogParamShowClient: false #前端调用接是地,参数错误详细内容是否回显给前端
LogParamErr: false #是否记录参数错误日志(warn级别)
Http:
AdminApiPort: ":8066" #端口
UseCrossMiddleware: true #是否使用跨域中间件
LoginCaptchaEnabled: true #登录时是否开启验证码
JwtAccessSecret: "zmyt7vzrGh" #jwt加密盐
JwtAccessExpire: 36000 #jwt多少秒后过期
AdminCaptcha: #登录时验证码配置
CharLen: 6
ImgWidth: 150
ImgHeight: 40
LimitCaptchaNum: 20
LimitTimeOut: 60 #秒
DBDefineList:
Default:
#user:passwd@tcp(127.0.0.1:3306)/dbname?charset=utf8mb4&parseTime=True&loc=Local&timeout=10s
dsn: "root:mysqlpwd@tcp(127.0.0.1:3306)/gincms?charset=utf8mb4&parseTime=True&loc=Local&timeout=10s"
MaxIdleConns: 10
MaxOpenConns: 100
ConnMaxIdleTime: 10000
ConnMaxLifetime: 20000 #秒 小于服务器设置的wait_timeout
# SecMysql: #项目有多个数据库时,打开注释定义
# Dsn: "root:passwd@tcp(127.0.0.1:3306)/gin_cms?charset=utf8mb4&parseTime=True&loc=Local"
# MaxIdleConns: 10
# MaxOpenConns: 100
Redis:
host: 127.0.0.1
port: 6379