gin-blog/configs/config.yaml

42 lines
819 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
Email:
Host: smtp.qq.com
Port: 465
UserName: xxxx@qq.com
Password: xxxxxxxx
IsSSL: true
From: xxxx@qq.com
To:
- xxxx@qq.com