Add configs for tunning
This commit is contained in:
parent
5ce4f5fd5d
commit
e1a47c1395
1 changed files with 10 additions and 0 deletions
10
nginx.tmpl
10
nginx.tmpl
|
|
@ -51,7 +51,17 @@ proxy_set_header Connection $proxy_connection;
|
|||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||
#Tunning
|
||||
client_max_body_size 10M;
|
||||
worker_processes = auto;
|
||||
worker_rlimit_nofile 100000;
|
||||
gzip on;
|
||||
gzip_min_length 10240;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
|
||||
|
||||
{{ end }}
|
||||
|
||||
server {
|
||||
|
|
|
|||
Loading…
Reference in a new issue