summaryrefslogtreecommitdiff
path: root/deskutils/py-paperless/files/nginx.conf.in
blob: 519f7fde0ca0b43865f7441e254eced22d560d13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    server {
        listen 80;
        server_name localhost;

        location /static/ {
            alias %%WWWDIR%%/static/;
        }

        location / {
            uwsgi_pass unix:/tmp/uwsgi-paperless.sock;
            include uwsgi_params;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   %%PREFIX%%/www/nginx-dist;
        }
    }