error_log syslog:server=example.com:514,tag=nginx_error error;

#daemon off;

upstream django{
        server unix:/home/example/conn.sock;
}

server{
        listen 80;
        charset utf-8;

    location / {
        uwsgi_pass  django;

        proxy_connect_timeout   10;
        proxy_send_timeout      40s;
        proxy_read_timeout      40s;
        uwsgi_send_timeout 40s;
        uwsgi_read_timeout 40s;

        include  /home/example/uwsgi_params;

        sendfile on;
        tcp_nopush on;
        reset_timedout_connection on;
        keepalive_timeout 40;
        keepalive_requests 100000;
    }
}