upstream uwsgi {
    server unix:/tmp/uwsgi/kompass.sock;
}

server {
    listen 80;
    server_name 127.0.0.1;
    charset utf-8;
    error_page 502 /downtime/502.html;

    location /static {
        alias /var/www/jdav_web/static;
    }

    location /media {
        alias /var/www/jdav_web/media;
    }

    location /downtime {
        alias /var/www/jdav_web/static/downtime;
    }

    location / {
        uwsgi_pass uwsgi;
        include /etc/nginx/uwsgi_params;
    }

}

