}
http {
# Basic Settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
keepalive_requests 100;
reset_timedout_connection on;
server_tokens off;
client_body_timeout 10;
send_timeout 5;
client_header_timeout 30;
server_names_hash_bucket_size 64;
client_max_body_size 50m;
open_file_cache max=10000 inactive=30s;
open_file_cache_valid 60s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# GZIP Config
gzip on;
gzip_static on;
gzip_min_length 1000;
gzip_buffers 128 16k;
gzip_disable "msie6";
gzip_proxied any;
gzip_comp_level 9;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss application/javascript application/x-font-ttf application/font-woff image/x-icon;
gzip_vary on;
gzip_http_version 1.1;
# Logs
access_log off;
error_log /var/log/nginx/error.log crit;
# Cache
include /etc/nginx/conf.d/active-*.conf;
}