This commit is contained in:
C菌
2022-04-20 03:50:21 +08:00
commit c113e38d82
11 changed files with 465 additions and 0 deletions

22
configs/config.yml Normal file
View File

@@ -0,0 +1,22 @@
server:
addr: 0.0.0.0:2830
timeout: 1s
data:
database:
driver: mysql
source: root:root@tcp(127.0.0.1:3306)/test
redis:
addr: 127.0.0.1:6379
read_timeout: 0.2s
write_timeout: 0.2s
log:
level: info
output: file
development: true
rotate:
filename: app.log
maxsize: 10
maxage: 7
maxbackups:
localtime:
compress: