gin-blog/configs/config.yaml
2021-05-31 17:40:47 +08:00

33 lines
677 B
YAML

Server:
RunMode: debug
HttpPort: 8080
ReadTimeout: 60
WriteTimeout: 60
App:
DefaultPageSize: 10
MaxPageSize: 100
LogSavePath: storage/logs
LogFileName: app
LogFileExt: .log
UploadSavePath: storage/uploads
UploadServerUrl: "http://127.0.0.1:8080/static"
UploadImageMaxSize: 5 # MB
UploadImageAllowExts:
- .jpg
- .jpeg
- .png
Database:
DBType: mysql
Username: xing # 填写你的数据库账号
Password: xing # 填写你的数据库密码
Host: 127.0.0.1:3306
DBName: tt
TablePrefix: blog_
Charset: utf8mb4
ParseTime: True
MaxIdleConns: 10
MaxOpenConns: 30
JWT:
Secret: eddycjy
Issuer: blog-service
Expire: 7200