Files
acc-server-manager/.env.example
2026-03-22 13:23:35 +01:00

96 lines
3.7 KiB
Plaintext
Executable File

# ACC Server Manager Environment Configuration
# Copy this file to .env and update with your actual values
# =============================================================================
# CRITICAL SECURITY SETTINGS (REQUIRED)
# =============================================================================
# JWT Secret Key - MUST be changed in production
# Generate with: openssl rand -base64 64
JWT_SECRET=your-super-secure-jwt-secret-key-minimum-32-chars-long-change-this-in-production
# Application Secrets - MUST be changed in production
# Generate with: openssl rand -hex 32
APP_SECRET=your-super-secure-app-secret-change-this-in-production
APP_SECRET_CODE=your-super-secure-app-secret-code-change-this-in-production
# Encryption Key for sensitive data (MUST be exactly 32 characters for AES-256)
# Generate with: openssl rand -hex 16
ENCRYPTION_KEY=your-32-character-encryption-key
# =============================================================================
# CORE APPLICATION SETTINGS
# =============================================================================
# Database file name (SQLite)
DB_NAME=acc.db
# Server port
PORT=3000
# CORS allowed origin (use specific domains in production)
CORS_ALLOWED_ORIGIN=http://localhost:5173
# Default admin password for initial setup (change after first login)
PASSWORD=change-this-default-admin-password
# =============================================================================
# INSTRUCTIONS FOR PRODUCTION DEPLOYMENT
# =============================================================================
# 1. Generate secure secrets:
# - JWT_SECRET: openssl rand -base64 64
# - APP_SECRET: openssl rand -hex 32
# - APP_SECRET_CODE: openssl rand -hex 32
# - ENCRYPTION_KEY: openssl rand -hex 16
# 2. Set appropriate CORS origins for your domain
# 3. Change the default PASSWORD immediately after first login
# 4. NEVER commit actual secrets to version control!
# =============================================================================
# PLATFORM SELECTION
# =============================================================================
# Platform mode: "windows" (default) or "docker"
# PLATFORM=windows
# =============================================================================
# DOCKER MODE SETTINGS (required when PLATFORM=docker)
# =============================================================================
# Docker image name for ACC server containers (built from docker/acc-server/Dockerfile)
# ACC_IMAGE=acc-wine:latest
# Host-side path for the shared ACC game installation volume.
# IMPORTANT: must be the HOST path — ACC containers are Docker siblings of the manager.
# ACC_GAME_VOLUME=/data/acc-game
# Host-side base path for per-server config directories.
# ACC_CONFIG_BASE_PATH=/data/configs
# Port pool for Docker-mode ACC server containers (one port per server).
# PORT_POOL_MIN=9600
# PORT_POOL_MAX=9700
# Linux SteamCMD binary path (pre-installed in the manager Docker image).
# STEAMCMD_LINUX_PATH=/usr/games/steamcmd
# =============================================================================
# OPTIONAL SETTINGS (These are handled by system config in database)
# =============================================================================
# The following settings are managed through the application's system config
# and stored in the database. They are listed here for reference only:
#
# - SteamCMD path (configured via web interface)
# - NSSM path (configured via web interface)
# - Logging settings (handled by application defaults)
# - Rate limiting (handled by application defaults)
# - Backup settings (handled by application defaults)
# - Monitoring settings (handled by application defaults)
#
# These can be configured through the web interface after installation.