59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# =========================================
|
|
# GamePanel Environment Configuration
|
|
# =========================================
|
|
# Copy this file to .env and update values
|
|
# cp .env.example .env
|
|
|
|
# --- Database ---
|
|
DATABASE_URL=postgresql://gamepanel:gamepanel@localhost:5432/gamepanel
|
|
DB_USER=gamepanel
|
|
DB_PASSWORD=gamepanel
|
|
DB_NAME=gamepanel
|
|
DB_PORT=5432
|
|
|
|
# --- Redis ---
|
|
REDIS_URL=redis://:gamepanel@localhost:6379
|
|
REDIS_PASSWORD=gamepanel
|
|
REDIS_PORT=6379
|
|
|
|
# --- API ---
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
API_PORT=3000
|
|
NODE_ENV=development
|
|
CORS_ORIGIN=http://localhost:5173
|
|
|
|
# --- JWT (CHANGE IN PRODUCTION!) ---
|
|
# Generate with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
|
|
JWT_SECRET=CHANGE_ME_GENERATE_A_SECURE_64_BYTE_HEX_STRING
|
|
JWT_REFRESH_SECRET=CHANGE_ME_GENERATE_ANOTHER_SECURE_64_BYTE_HEX_STRING
|
|
|
|
# --- Rate Limiting ---
|
|
RATE_LIMIT_MAX=100
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
|
|
# --- Web ---
|
|
WEB_PORT=80
|
|
|
|
# --- Daemon ---
|
|
DAEMON_CONFIG=/etc/gamepanel/config.yml
|
|
DAEMON_GRPC_PORT=50051
|
|
DAEMON_TOKEN=CHANGE_ME_GENERATE_A_SECURE_TOKEN
|
|
# Host directories for game server files and backups. The daemon hands these
|
|
# exact paths to the host Docker engine when creating game containers, so they
|
|
# must exist on the host — not inside the daemon container.
|
|
DAEMON_DATA_PATH=/var/lib/gamepanel/servers
|
|
DAEMON_BACKUP_PATH=/var/lib/gamepanel/backups
|
|
|
|
# --- Managed config persistence ---
|
|
# How long the panel keeps restoring panel-managed config files after a start.
|
|
# Steam images can re-validate for a long time before overwriting them.
|
|
MANAGED_CONFIG_SUSTAIN_MS=1800000
|
|
|
|
# --- CDN (Plugin Artifacts) ---
|
|
CDN_BASE_URL=https://cdn.hibna.com.tr
|
|
CDN_API_KEY=
|
|
CDN_PLUGIN_BUCKET=gamepanel-plugin-artifacts
|
|
CDN_PLUGIN_ARTIFACT_TTL_SECONDS=900
|
|
CDN_WEBHOOK_SECRET=
|