aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/nginx.conf.example7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/nginx.conf.example b/config/nginx.conf.example
index 9bec78f77..56e720abb 100644
--- a/config/nginx.conf.example
+++ b/config/nginx.conf.example
@@ -15,8 +15,15 @@ server {
try_files $uri @ruby;
}
+ location /download {
+ internal;
+ alias /var/www/alaveteli/alaveteli/cache/zips/development/download;
+ }
+
location @ruby {
proxy_pass http://alaveteli;
proxy_set_header Host $http_host;
+ proxy_set_header X-Sendfile-Type X-Accel-Redirect;
+ proxy_set_header X-Accel-Mapping /var/www/alaveteli/alaveteli/cache/zips/development/download=/download;
}
}