Initial commit

This commit is contained in:
wangxuming
2026-07-12 15:53:24 +08:00
commit 68d61700d5
252 changed files with 23291 additions and 0 deletions

18
server/.env.example Normal file
View File

@@ -0,0 +1,18 @@
# Copy to .env and load it in your shell. Never reuse these development keys
# outside a local disposable environment.
APP_ENV=development
HTTP_ADDR=:8080
DATABASE_URL=postgres://queue:queue@localhost:5432/queue?sslmode=disable
DATA_ENCRYPTION_KEY_BASE64=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=
PHONE_HMAC_KEY_BASE64=YWJjZGVmMDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODk=
SESSION_COOKIE_NAME=queue_session
SESSION_COOKIE_SECURE=false
SESSION_TTL=12h
MIGRATE_ON_START=true
SHUTDOWN_TIMEOUT=10s
DB_MAX_OPEN_CONNS=20
DB_MAX_IDLE_CONNS=5
DB_CONN_MAX_IDLE_TIME=5m
DB_CONN_MAX_LIFETIME=30m
MAINTENANCE_INTERVAL=1h
MAINTENANCE_BATCH_SIZE=500