server {
server_name ip;
access_log off;
location /static/ {
alias /home/backend/static/;
}
location /media/ {
alias /home/backend/media/;
}
location / {
proxy_pass http://unix:/run/gunicorn/socket;
proxy_redirect http://unix:/run/gunicorn/socket/ /;
proxy_read_timeout 60s;
include proxy_params;
}
}