server {
listen *:80;.
server_name site.dev;
location /static/static/clip/ {
rewrite ^/static/static/clip/(.*)$ /$1 break;
root /home/user/dev/clip/;
}
location ~* (\w+\.(?:jpg|jpeg|ico))/thumb_img$ {
alias /home/user/dev/img/$1;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/var/tmp/pauluskp.sock;
uwsgi_param UWSGI_CHDIR /home/user/dev/;
client_max_body_size 100m;
proxy_set_header Host $host;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
<code>