-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
43 lines (35 loc) · 1.08 KB
/
.env.example
File metadata and controls
43 lines (35 loc) · 1.08 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ----------------------------------
# Server
# ----------------------------------
SERVER_PORT=8080
SERVER_IO_THREADS=0 # 0 = auto (hardware concurrency)
SERVER_REQUEST_TIMEOUT=2000 # ms
SERVER_SESSION_TIMEOUT_SEC=20
SERVER_BENCH_MODE=false
# ----------------------------------
# WebSocket
# ----------------------------------
# Maximum size of a WebSocket message (bytes)
WEBSOCKET_MAX_MESSAGE_SIZE=65536
# Idle timeout before closing connection (seconds)
# 0 = disabled
WEBSOCKET_IDLE_TIMEOUT=60
# Enable per-message compression (RFC 7692)
WEBSOCKET_ENABLE_DEFLATE=true
# Interval between ping frames (seconds)
# 0 = disabled
WEBSOCKET_PING_INTERVAL=30
# Automatically handle ping/pong frames
WEBSOCKET_AUTO_PING_PONG=true
# ----------------------------------
# Logging
# ----------------------------------
LOGGING_ASYNC=true
LOGGING_QUEUE_MAX=20000
LOGGING_DROP_ON_OVERFLOW=true
# ----------------------------------
# Security / WAF
# ----------------------------------
WAF_MODE=basic # off | basic | strict
WAF_MAX_TARGET_LEN=4096
WAF_MAX_BODY_BYTES=1048576