events {} http { server { listen 80; location = /favicon.ico { access_log off; log_not_found off; } location /static { autoindex on; root /app; } location / { add_header 'Access-Control-Allow-Origin' '*' always; proxy_pass http://unix:/var/run/gunicorn.sock; proxy_set_header Accept-Encoding ""; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } }
nginx
тоесть статика лежит в папке /app/static/
Обсуждают сегодня