user  www-data;
worker_processes  4;

events {
	worker_connections  2048;
}
 
http {
	include       mime.types;
	default_type  application/octet-stream;

	client_header_timeout  3m;
    client_body_timeout    3m;
	send_timeout           3m;
    client_header_buffer_size    1k;
    large_client_header_buffers  4 4k;
 
    gzip on;
    gzip_min_length  1100;
    gzip_buffers     4 8k;
    gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

	output_buffers   1 32k;
    postpone_output  1460;
 
    sendfile         on;
    tcp_nopush       on;
 
    tcp_nodelay      on;
 
    keepalive_timeout  75 20;
    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;
    error_log  /var/log/nginx_error.log debug;
 	include /usr/local/nginx/sites-enabled/*;
}