From d0ff2362ddf69b5cafc9352ad184851ba5cc8421 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 16 Jan 2015 05:17:44 +0100 Subject: [PATCH] nginx: Enable resumable downloads for release files --- setup/www/resources/iojs.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/www/resources/iojs.org b/setup/www/resources/iojs.org index 49ed463a8..da0792d59 100644 --- a/setup/www/resources/iojs.org +++ b/setup/www/resources/iojs.org @@ -8,6 +8,8 @@ server { server_name iojs.org; + root /home/iojs/www; + ssl_certificate ssl/iojs_chained.crt; ssl_certificate_key ssl/iojs.key; ssl_trusted_certificate ssl/iojs_chained.crt; @@ -46,9 +48,7 @@ server { rewrite ^(.*)$ https://iojs.org$1; } - location / { - root /home/iojs/www; - index index.html; - default_type text/plain; + location ~* (\.xz|\.gz|\.pkg|\.msi)$ { + gzip off; } }