49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
# Termix Docker Environment Configuration Example
|
|
#
|
|
# IMPORTANT: This file shows available environment variables.
|
|
# For most users, you DON'T need to create a .env file.
|
|
# Termix will auto-generate secure keys on first startup.
|
|
#
|
|
# Copy this file to .env ONLY if you need custom configuration:
|
|
# cp docker/.env.example docker/.env
|
|
|
|
# ===== BASIC CONFIGURATION =====
|
|
PORT=8080
|
|
NODE_ENV=production
|
|
|
|
# ===== SSL/HTTPS CONFIGURATION =====
|
|
ENABLE_SSL=false
|
|
SSL_PORT=8443
|
|
SSL_DOMAIN=localhost
|
|
SSL_CERT_PATH=/app/ssl/termix.crt
|
|
SSL_KEY_PATH=/app/ssl/termix.key
|
|
|
|
# ===== SECURITY KEYS =====
|
|
# WARNING: Only set these if you need specific keys for multi-instance deployment
|
|
# For single instance deployment, leave these EMPTY - Termix will auto-generate
|
|
# secure random keys and persist them in Docker volumes.
|
|
#
|
|
# If you DO set these, generate them with: openssl rand -hex 32
|
|
JWT_SECRET=
|
|
DATABASE_KEY=
|
|
INTERNAL_AUTH_TOKEN=
|
|
|
|
# ===== CORS CONFIGURATION =====
|
|
ALLOWED_ORIGINS=*
|
|
|
|
# ===== DEPLOYMENT NOTES =====
|
|
#
|
|
# Single Instance (Recommended):
|
|
# - Don't create .env file - let Termix auto-generate keys
|
|
# - Keys are automatically persisted in Docker volumes
|
|
# - Secure and maintenance-free
|
|
#
|
|
# Multi-Instance Cluster:
|
|
# - Set identical JWT_SECRET, DATABASE_KEY, INTERNAL_AUTH_TOKEN across all instances
|
|
# - Use shared storage for /app/data and /app/config volumes
|
|
# - Ensure all instances can access the same encryption keys
|
|
#
|
|
# Security Best Practices:
|
|
# - Never commit .env files to version control
|
|
# - Use Docker secrets in production environments
|
|
# - Regularly rotate keys (requires data migration) |