-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.txt
53 lines (38 loc) · 1.31 KB
/
config.txt
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
44
45
46
47
48
49
50
51
52
53
# Log buffer size in bytes
log_buff_size_b 1048576 # 1MB
# Log file size limit in bytes
log_file_limit_b 16777216 # 16MB
# Log folder limit in megabytes
log_dir_limit_mb 25600 # 25GB
# Log folder
log_dir_path logs
# How often the log buffer is flushed
log_flush_timeout_sec 3
# Capacity of the server. This must be lower than the NOFILE rlimit by 2.
# If the rlimit is 1024, max_connections can only go up to 1024-2=1022
max_connections 1022
# Maximum HTTP request count that can be server through a single TCP connection
keep_alive_max_requests 1000
# Maximum time a TCP connection is allowed to be alive
connection_timeout_sec 60
# Timeout for the closing state (when response is being flushed before the TCP
# connection is closed)
closing_timeout_sec 1
# Request receive timeout
request_timeout_sec 5
access_log yes
# These are debug options
show_io no
show_requests no
# Address and port the HTTP server will listen on.
# To bind to all available interfaces, leave a blank address blank:
http_addr "127.0.0.1"
http_port 8080
# Address and port the HTTPS server will listen on (if the server
# has been built with HTTPS support). To bind to all interfaces you
# must leave the address blank.
https_addr "127.0.0.1"
https_port 8081
# Certificate and private key files
cert_file "cert.pem"
privkey_file "key.pem"