Add some general tunes for nginx

Change-Id: I9c548294a05fe4303cdefcaa85d58ca8b3f0eda7
This commit is contained in:
Proskurin Kirill 2017-02-10 14:47:33 +00:00
parent e0603076de
commit 944fc7a4b9
1 changed files with 23 additions and 0 deletions

View File

@ -2,8 +2,31 @@ daemon off;
user www-data;
events {
use epoll;
multi_accept on;
worker_connections 1024;
}
http {
sendfile on;
underscores_in_headers on;
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 60;
proxy_buffers 8 8k;
proxy_busy_buffers_size 16k;
proxy_buffering on;
server_names_hash_max_size 256;
variables_hash_bucket_size 128;
log_format main
'$remote_addr $sent_http_x_user_id [$time_local] '
'$request_method "$request_uri" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'$request_time '
'$upstream_response_time $host';
include conf.d/*.conf;
}