Files
chrani-bot-tng/bot/resources/configs/.env.example
2025-11-21 07:26:02 +01:00

75 lines
2.4 KiB
Plaintext

# chrani-bot-tng Environment Configuration
# Copy this file to .env and adjust the values for your setup
# ============================================================================
# Application Settings
# ============================================================================
# Set to 'true' when running under gunicorn or other WSGI servers
RUNNING_UNDER_WSGI=true
# Flask secret key - CHANGE THIS to a random string in production!
FLASK_SECRET_KEY=change-this-to-a-random-secret-key
# ============================================================================
# Server Configuration
# ============================================================================
# Host to bind to (use 0.0.0.0 for all interfaces, 127.0.0.1 for localhost only)
HOST=0.0.0.0
# Port to run on
PORT=5000
# ============================================================================
# 7 Days to Die Server Settings
# ============================================================================
# Telnet connection settings for the game server
TELNET_HOST=localhost
TELNET_PORT=8081
TELNET_PASSWORD=your-telnet-password
# ============================================================================
# Logging
# ============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# ============================================================================
# Development Settings
# ============================================================================
# Enable Flask debug mode (DO NOT use in production!)
FLASK_DEBUG=false
# Enable SocketIO debug mode
SOCKETIO_DEBUG=false
# Enable engineio logger
ENGINEIO_LOGGER=false
# ============================================================================
# Production Settings
# ============================================================================
# Number of gunicorn workers (for WebSocket use 1 worker with gevent)
GUNICORN_WORKERS=1
# Gunicorn worker class (use 'gevent' for WebSocket support)
GUNICORN_WORKER_CLASS=gevent
# Maximum number of concurrent connections per worker
GUNICORN_WORKER_CONNECTIONS=1000
# Request timeout in seconds
GUNICORN_TIMEOUT=120
# ============================================================================
# Database/Storage (if applicable)
# ============================================================================
# Add any database connection strings or storage paths here
# DATA_DIR=/var/lib/chrani-bot-tng