worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server_tokens off; server { listen 80; listen [::]:80; listen 8000; listen [::]:8000; server_name localhost; location / { include uwsgi_params; client_max_body_size 20m; client_body_timeout 300s; uwsgi_pass app:9200; } # Pass through the static directory # This should match whatever is in your config file location /static { alias /var/www; } location /robots.txt { alias /var/www/static/robots.txt; } # Optionally change the log path. # access_log /var/log/nginx/dispatch.example.com/access.log; # error_log /var/log/nginx/dispatch.example.com/error.log; } include conf.d/*.conf; }