2026-01-05 20:27:06 -08:00
|
|
|
# MacroPad Relay Server Configuration
|
|
|
|
|
# Copy this file to .env and adjust values as needed
|
|
|
|
|
|
|
|
|
|
# Server
|
|
|
|
|
PORT=3000
|
|
|
|
|
HOST=0.0.0.0
|
|
|
|
|
NODE_ENV=production
|
|
|
|
|
|
|
|
|
|
# Security
|
|
|
|
|
BCRYPT_ROUNDS=10
|
|
|
|
|
|
|
|
|
|
# Session ID length (default: 6 characters)
|
|
|
|
|
SESSION_ID_LENGTH=6
|
|
|
|
|
|
|
|
|
|
# Rate limiting
|
2026-01-05 20:47:32 -08:00
|
|
|
RATE_LIMIT_WINDOW_MS=90
|
|
|
|
|
RATE_LIMIT_MAX=1024
|
2026-01-05 20:27:06 -08:00
|
|
|
|
|
|
|
|
# WebSocket timeouts (in milliseconds)
|
|
|
|
|
PING_INTERVAL=30000
|
|
|
|
|
REQUEST_TIMEOUT=30000
|
|
|
|
|
|
|
|
|
|
# Logging (error, warn, info, debug)
|
|
|
|
|
LOG_LEVEL=info
|
|
|
|
|
|
|
|
|
|
# Data directory (default: ./data)
|
|
|
|
|
# DATA_DIR=/path/to/data
|