user geeksbot;
master_process off;
# set open fd limit to 30000
worker_rlimit_nofile 30000;
pid /var/run/nginx.pid;
daemon off;

events {
    worker_connections 4096;
    accept_mutex off;
}

http {
    # Basic Settings
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    client_max_body_size 200M;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    # Logging
    access_log /tmp/logs/nginx/access.log;
    error_log /tmp/logs/nginx/error.log;

    # Gzip

    gzip on;
    gzip_proxied any;
    gzip_comp_level 2;
    gzip_http_version 1.1;
    gzip_buffers 16 8k;
    gzip_types text/plain text/css application/json application/x-javascript text/xml applicaion/xml application/xml-rss text/javascript;
    gzip_disable "msie6";
    gzip_vary on;

    # Virtual Host Configs

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}