-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
74 lines (60 loc) · 2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
pcre_jit on;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
aio threads;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
keepalive_disable msie6;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519:P-521:P-384;
ssl_ciphers [ECDHE-ECDSA-CHACHA20-POLY1305|ECDHE-RSA-CHACHA20-POLY1305|ECDHE-ECDSA-AES256-GCM-SHA384|ECDHE-RSA-AES256-GCM-SHA384]:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 15m;
ssl_session_tickets off;
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/plain
text/css
text/x-component
text/javascript application/javascript application/x-javascript
text/xml application/xml application/rss+xml
application/json
application/vnd.ms-fontobject
font/truetype font/opentype
image/svg+xml;
brotli on;
brotli_static on;
brotli_comp_level 6;
brotli_types
text/plain
text/css
text/x-component
text/javascript application/javascript application/x-javascript
text/xml application/xml application/rss+xml
application/json
application/vnd.ms-fontobject
font/truetype font/opentype
image/svg+xml;
lua_package_path '/usr/local/lib/lua/?.lua;/usr/local/share/lua/5.1/resty/?.lua;;';
include /etc/nginx/conf.d/*.conf;
}