36 líneas
706 B
Plaintext
36 líneas
706 B
Plaintext
# Environment Configuration
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
|
|
# CORS Configuration (comma-separated origins)
|
|
ALLOWED_ORIGINS=*
|
|
|
|
# Socket.IO Configuration
|
|
SOCKET_IO_PING_TIMEOUT=60000
|
|
SOCKET_IO_PING_INTERVAL=25000
|
|
|
|
# Room Configuration
|
|
DEFAULT_ROOM_NAME=main-chat
|
|
MAX_USERS_PER_ROOM=10
|
|
MAX_MESSAGE_LENGTH=1000
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FILE=logs/chatrtc-server.log
|
|
|
|
# Security
|
|
ENABLE_HELMET=true
|
|
TRUST_PROXY=false
|
|
|
|
# Production Configuration (uncomment for production)
|
|
# NODE_ENV=production
|
|
# PORT=443
|
|
# SSL_KEY_PATH=/path/to/private-key.pem
|
|
# SSL_CERT_PATH=/path/to/certificate.pem
|
|
# SSL_CA_PATH=/path/to/ca-bundle.pem
|