aboutsummaryrefslogtreecommitdiff
path: root/lib/nginx/patchwork.conf
blob: 69a7ab5ed7708ed971acc3b623b71b07b488c22d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    server_tokens off;

    gzip on;
    gzip_types text/css application/javascript;
    gzip_min_length 500;
    gzip_disable msie6;

    location = favicon.ico { access_log off; log_not_found off; }

    location /static {
        alias /var/www/patchwork;
        expires 3h;
    }

    location / {
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/patchwork.sock;
    }
}