# ============================================
# Environment Configuration Example
# Copy this file to .env and fill in your actual values
# ============================================

# Server Configuration
NODE_ENV=production
PORT=3001

# External API Configuration (srebot-api)
EXTERNAL_API_URL=http://localhost:6000

# Domain Config (used for CORS)
PRODUCTION_DOMAIN=https://sre.pawjob.us

# Path to .env file (defaults to ./env in this directory)
# DOTENV_PATH=/path/to/.env

# Storage volume (required - holds replays, squadrons, entitlements data)
STORAGE_VOL_PATH=/mnt/HC_Volume_105581488/STORAGE

# Legacy replays directory (optional, for backwards compatibility)
# LEGACY_REPLAYS_ROOT=/path/to/replays

# Python binary for replay rendering and recap generation
# PYTHON_BIN=/path/to/python3

# Path to render_recap.py script (optional, enables recap generation)
# RECAP_SCRIPT=/path/to/BOT/render_recap.py

# Root of the SREBOT repo (used as cwd for Python scripts)
# BOT_REPO_ROOT=/path/to/SREBOT

# SHARED icon and minimap directories
# SHARED_ICONS_DIR=/path/to/SHARED/ICONS
# SHARED_MINIMAPS_DIR=/path/to/SHARED/MAPS/MINIMAPS

# API Security (optional - auto-generates if not set)
# Generate with: openssl rand -hex 32
API_SECRET=

# IP Whitelist (optional - comma-separated IPs for production)
ALLOWED_IPS=

# Webhook Configuration (optional - for GitHub auto-deployment)
# Generate a secure random string for this
WEBHOOK_SECRET=

# ============================================
# PM2 Commands:
# ============================================
# Start with PM2:
#   npm run pm2:start
#
# Other PM2 commands:
#   npm run pm2:stop     - Stop the app
#   npm run pm2:restart  - Restart the app
#   npm run pm2:reload   - Zero-downtime reload
#   npm run pm2:logs     - View logs
#   npm run pm2:monit    - Monitor dashboard
#   npm run pm2:delete   - Remove from PM2
#
# Auto-start on reboot:
#   pm2 startup
#   pm2 save
# ============================================
