-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini
More file actions
29 lines (23 loc) · 1.06 KB
/
config.ini
File metadata and controls
29 lines (23 loc) · 1.06 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
; ============================================
; C++ HTTP Server Configuration
; ============================================
[server]
; Network settings
host = 127.0.0.1 ; Bind address (use 0.0.0.0 for all interfaces)
port = 8080 ; Listen port
; File serving
www_root = static ; Directory containing static files
buffer_size = 37020 ; Internal I/O buffer size (bytes)
; Connection management
max_connections = 20 ; TCP listen backlog
max_active_clients = 100 ; Max concurrent client threads (503 when exceeded)
; Security
max_request_size = 8192 ; Max HTTP request header size (bytes), returns 413 if exceeded
; Timeouts (milliseconds) - prevents threads from hanging on slow clients
recv_timeout_ms = 5000 ; Max time to receive request
send_timeout_ms = 5000 ; Max time to send response
[logging]
; Logging configuration
log_to_file = true ; Enable file logging
log_level = INFO ; Minimum level: DEBUG, INFO, WARN, ERROR
log_dir = logs ; Directory for log files (created automatically)