From 01e2813e4c87dd1bd2dbe00a96aaca566533a1ad Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 13 Jun 2016 12:10:07 +0000 Subject: main/patchwork: improved uwsgi and nginx subpkg --- main/patchwork/nginx-patchwork.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 main/patchwork/nginx-patchwork.conf (limited to 'main/patchwork/nginx-patchwork.conf') diff --git a/main/patchwork/nginx-patchwork.conf b/main/patchwork/nginx-patchwork.conf new file mode 100644 index 0000000000..575bc3e0ba --- /dev/null +++ b/main/patchwork/nginx-patchwork.conf @@ -0,0 +1,33 @@ +server { + listen 80; + server_name domain.tld; + access_log /var/log/nginx/patchwork.log; + error_log /var/log/nginx/patchwork-error.log; + + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + + gzip on; + gzip_proxied any; + gzip_types text/plain text/css text/javascript application/x-javascript + text/xml application/xml image/svg+xml + application/vnd.ms-fontobject application/x-font-ttf font/opentype; + + location = favicon.ico { + access_log off; + log_not_found off; + } + + location /static { + alias /usr/share/webapps/patchwork/htdocs; + expires 3h; + } + + location / { + include uwsgi_params; + uwsgi_pass unix:/run/uwsgi/patchwork.sock; + uwsgi_modifier1 30; + } +} -- cgit v1.2.3