-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
58 lines (44 loc) · 1.4 KB
/
nginx.conf
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
54
55
56
57
58
user nginx nginx;
worker_processes 8;
worker_cpu_affinity 00000001
00000010
00000100
00001000
00010000
00100000
01000000
10000000;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
use epoll;
worker_connections 32767;
}
http {
include /etc/nginx/conf.d/*.conf;
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
sendfile on;
proxy_buffering off;
keepalive_timeout 3s;
tcp_nodelay on;
tcp_nopush off;
gzip on;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
limit_conn_zone $binary_remote_addr zone=addr:20m;
limit_conn addr 16;
limit_req_zone $binary_remote_addr zone=req_per_ip:20m rate=64r/s;
limit_req zone=req_per_ip burst=96;
ssl_certificate_key /etc/nginx/ssl-secrets/cqumirror.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
include /etc/nginx/sites-enabled/*;
}