# Server
PORT=8088
PUBLIC_WS_URL=wss://togethere.cloud/ping-pong-1v1
ALLOWED_ORIGINS=https://togethere.cloud

# Redis
REDIS_URL=redis://127.0.0.1:6379
REDIS_KEY_PREFIX=pp:1v1:

# MySQL
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=change_me
MYSQL_DATABASE=togethere_cloud
MYSQL_CONNECTION_LIMIT=20

# Shared secret between PHP endpoints and Node server
PINGPONG_1V1_SHARED_SECRET=change_me_long_random

# PHP API base URL (for rewards callback)
API_BASE_URL=https://togethere.cloud
REWARDS_ENDPOINT_PATH=/api/matches/ping-pong/1v1/

# Tuning
MATCH_TICK_HZ=30
REDIS_SNAPSHOT_MS=1000
MYSQL_UPDATE_INTERVAL_MS=1000
RECONNECT_GRACE_MS=15000