Files
mkcertWeb/.env.example
2025-07-29 14:32:45 -04:00

42 lines
1.5 KiB
Plaintext

# Server Configuration
PORT=3000 # HTTP server port
HTTPS_PORT=3443 # HTTPS server port
# SSL/HTTPS Configuration
ENABLE_HTTPS=true # Enable HTTPS server (true/false)
SSL_DOMAIN=localhost # Domain name for SSL certificate
FORCE_HTTPS=false # Redirect HTTP to HTTPS (true/false)
# Application Configuration
NODE_ENV=development # Environment mode (development/production)
CERT_DIR= # Custom certificate storage directory (optional)
DEFAULT_THEME=dark # Default theme mode (dark/light)
# Authentication Configuration
ENABLE_AUTH=false # Enable user authentication (true/false)
AUTH_USERNAME=admin # Username for authentication (when ENABLE_AUTH=true)
AUTH_PASSWORD=admin # Password for authentication (when ENABLE_AUTH=true)
SESSION_SECRET=mkcert-web-ui-secret-key-change-in-production # Session secret - CHANGE IN PRODUCTION!
# Examples:
# For development with HTTPS:
# ENABLE_HTTPS=true
# SSL_DOMAIN=myapp.local
# FORCE_HTTPS=false
# For production with HTTPS only:
# ENABLE_HTTPS=true
# SSL_DOMAIN=your-domain.com
# FORCE_HTTPS=true
# NODE_ENV=production
# For production with authentication:
# ENABLE_AUTH=true
# AUTH_USERNAME=your-username
# AUTH_PASSWORD=your-secure-password
# SESSION_SECRET=your-very-long-random-secret-key
# Theme configuration:
# DEFAULT_THEME=light # Start with light mode by default
# DEFAULT_THEME=dark # Start with dark mode by default (default)