# Database
POSTGRES_HOST=127.0.0.1
POSTGRES_PORT=15432
POSTGRES_DB=sammo
POSTGRES_USER=sammo
POSTGRES_PASSWORD=change-me
# POSTGRES_SCHEMA=public
# DATABASE_URL=postgresql://sammo:change-me@127.0.0.1:15432/sammo?schema=public
# GATEWAY_DATABASE_URL=postgresql://sammo:change-me@127.0.0.1:15432/sammo?schema=public

# Redis
REDIS_HOST=127.0.0.1
REDIS_PORT=16379
REDIS_DB=0
REDIS_PASSWORD=change-me
# REDIS_URL=redis://:change-me@127.0.0.1:16379/0

# Shared secrets
GAME_TOKEN_SECRET=change-me

# Gateway API
GATEWAY_API_HOST=0.0.0.0
GATEWAY_API_PORT=13000
GATEWAY_PUBLIC_URL=http://localhost:13000
GATEWAY_REDIS_PREFIX=sammo:gateway
GATEWAY_DB_SCHEMA=public
GATEWAY_WORKSPACE_ROOT=/path/to/core2026
GATEWAY_WORKTREE_ROOT=/path/to/core2026/.worktrees
GATEWAY_USER_ICON_DIR=uploads/user-icons
GATEWAY_USER_ICON_PUBLIC_URL=http://localhost:13000/user-icons
GATEWAY_LOCAL_REGISTRATION_ENABLED=true
GATEWAY_LOCAL_ACCOUNT_GRACE_DAYS=7
# Optional. Keep the PEM private key outside Git; if omitted, a per-process RSA key is generated.
# GATEWAY_PASSWORD_ENCRYPTION_PRIVATE_KEY_FILE=/run/secrets/gateway_password_private_key
# Required only while imported ref SHA-512 credentials remain.
# GATEWAY_LEGACY_PASSWORD_GLOBAL_SALT=replace-with-ref-global-salt
SESSION_TTL_SECONDS=604800
GAME_SESSION_TTL_SECONDS=21600
OAUTH_SESSION_TTL_SECONDS=600
KAKAO_REST_KEY=your-kakao-rest-key
KAKAO_ADMIN_KEY=your-kakao-admin-key
KAKAO_REDIRECT_URI=http://localhost:13000/oauth/kakao/callback

# Game API
GAME_API_HOST=0.0.0.0
GAME_API_PORT=14000
PROFILE=hwe
SCENARIO=default
DAEMON_REQUEST_TIMEOUT_MS=5000
TRPC_PATH=/trpc
