feat 初次提交

This commit is contained in:
2026-01-03 14:26:12 +08:00
parent 233fc9933f
commit 9c93ecf6e4
18 changed files with 1329 additions and 0 deletions

31
config/config.dev.yaml Normal file
View File

@@ -0,0 +1,31 @@
app:
name: "user-dev"
log:
debug: true
level: "debug"
maxSize: 10
maxBackups: 100
maxAge: 7
db:
etcd:
endpoints: [ "10.0.40.9:2379" ]
mysql:
user_db:
dsn: "root:gR9pV4tY7zR6qL3e@tcp(47.108.184.184:3306)/user_db?charset=utf8mb4&parseTime=True&loc=Local"
maxOpenConn: 50
maxIdleConn: 20
connMaxLifetimeSec: 600
connMaxIdleTimeSec: 180
logLevel: "warn"
redis:
addr: "47.108.184.184:6379"
password: "lQ7aM8oB6lK0iD5k"
db: 0
serve:
grpc:
address: "10.0.40.199"
port: 8602
ttl: 20