Add .env.example for relay server configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
27
macropad-relay/.env.example
Normal file
27
macropad-relay/.env.example
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
RATE_LIMIT_WINDOW_MS=900000
|
||||
RATE_LIMIT_MAX=100
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user