-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
54 lines (43 loc) · 1.47 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
user nobody;
worker_processes auto;
worker_rlimit_nofile 500000;
events {
multi_accept on;
worker_connections 100000;
use epoll;
}
http {
server {
listen 80;
location / {
root html;
index index.html index.htm;
}
}
client_body_timeout 65;
client_header_timeout 65;
client_max_body_size 10m;
reset_timedout_connection on;
send_timeout 200;
server_tokens off;
server_names_hash_bucket_size 64;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
types_hash_max_size 2048;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
gzip on;
gzip_disable "msie6";
gzip_min_length 1000;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
include mime.types;
default_type application/octet-stream;
log_format '$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 ;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}