add initial application structure with configuration, logging, and health check endpoints

This commit is contained in:
kever
2026-01-14 23:58:00 +08:00
commit fed727e593
31 changed files with 770 additions and 0 deletions

20
application.yaml Normal file
View File

@@ -0,0 +1,20 @@
server:
port: 8080
readTimeout: 5s
writeTimeout: 5s
mysql:
dsn: "root:mysql_78GywN@tcp(111.228.49.52:3306)/db?parseTime=true&loc=Local"
redis:
addr: "111.228.49.52"
password: "redis_7aFAxY"
db: 0
log:
level: info
format: json
cron:
enabled: true
timezone: "Asia/Shanghai"