user  root;
worker_processes  8;
daemon off;

error_log  /var/log/nginx/error.log warn;
pid        /run/nginx.pid;


events {
    worker_connections  2048;
}


http {
    include       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;

    sendfile        off;
    #tcp_nopush     on;

    keepalive_timeout  65;
    fastcgi_connect_timeout 800;
    fastcgi_send_timeout 800;
    fastcgi_read_timeout 800;
    fastcgi_buffer_size 512k;     
    fastcgi_buffers 32 512k;       
    fastcgi_busy_buffers_size 2048k;
    fastcgi_temp_file_write_size 2048k;   
    client_max_body_size 500m;
    client_body_buffer_size 2048k; 
    client_header_buffer_size 2048k;
    large_client_header_buffers 4 4096k;

    #gzip  on;

    include conf.d/*.conf;
}