error_log /usr/src/app/logs/nginx.error.log warn; pid /tmp/nginx.pid; daemon off; worker_processes 1; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; upstream appserver { server localhost:8001; } server { listen 8000; access_log /usr/src/app/logs/nginx.access.log combined; client_body_temp_path /tmp/client_body; fastcgi_temp_path /tmp/fastcgi; proxy_temp_path /tmp/proxy; scgi_temp_path /tmp/scgi; uwsgi_temp_path /tmp/uwsgi; location / { proxy_pass http://appserver; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; } location /static/ { root /usr/src/app; } } }