user www-data; worker_processes 1; #1 per core error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; 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; # access_log off; client_max_body_size 12M; client_body_buffer_size 10K; client_header_buffer_size 1k; proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s; sendfile on; #tcp_nopush on; client_body_timeout 12; client_header_timeout 12; send_timeout 10; keepalive_timeout 65; gzip on; gzip_disable "msie6"; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain application/x-javascript text/xml text/css application/xml; include /etc/nginx/conf.d/*.conf; }