server {
    listen 80;
    listen [::]:80;

    access_log /var/log/nginx/paste.example.org-access.log;
    error_log /var/log/nginx/paste.example.org-error.log;

    client_max_body_size 32M;

    location / {
        charset utf-8;
        uwsgi_pass unix:///run/uwsgi/app/bepasty/socket;
        include uwsgi_params;
    }

    location /static/ {
        alias /usr/lib/python3/dist-packages/bepasty/static/;
    }
}
