-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
24 lines (20 loc) · 1.11 KB
/
.env.example
File metadata and controls
24 lines (20 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ──────────────────────────────────────────────────────────────────────────────
# Socket Chat – environment variables
# Copy this file to .env and fill in the values.
# NEVER commit .env to source control.
# ──────────────────────────────────────────────────────────────────────────────
# Server
NODE_ENV=development # development | production
PORT=8000
HOST=0.0.0.0
# CORS – comma-separated list of allowed origins (use * only in dev)
CORS_ORIGINS=*
# Rate limiting
RATE_LIMIT_WINDOW_MS=900000 # 15 minutes in ms
RATE_LIMIT_MAX=200 # max requests per window per IP
# Chat constraints
MAX_MESSAGE_LENGTH=500
MAX_USERNAME_LENGTH=30
MAX_ROOM_NAME_LENGTH=30
HISTORY_SIZE=50 # messages kept in memory per room
TYPING_DEBOUNCE_MS=3000 # ms before "typing" indicator auto-hides