This commit is contained in:
“xHuPo” 2025-05-23 18:57:11 +08:00
parent a45ddf13d5
commit bcd986e3f7
46 changed files with 6166 additions and 454 deletions

View file

@ -1,15 +1,23 @@
server:
name: "otpm"
database:
driver: sqlite
dsn: otpm.sqlite
skip_migration: false
port: 8080
port: 8080
read_timeout: 15s
write_timeout: 15s
shutdown_timeout: 5s
auth:
secret: "secret"
ttl: 3600
database:
driver: sqlite3
dsn: otpm.sqlite
max_open_conns: 25
max_idle_conns: 25
max_lifetime: 5m
skip_migration: false
jwt:
secret: "your-jwt-secret-key-change-this-in-production"
expire_delta: 24h
refresh_delta: 168h
signing_method: HS256
wechat:
appid: "wx57d1033974eb5250"
secret: "be494c2a81df685a40b9a74e1736b15d"
app_id: "your-wechat-app-id"
app_secret: "your-wechat-app-secret"