OSC / nginx_stage

[MOVED] Stages & controls the per-user NGINX environment
https://github.com/OSC/ondemand/tree/master/nginx_stage
MIT License
0 stars 1 forks source link

Add file download capabilities #10

Closed nickjer closed 8 years ago

nickjer commented 8 years ago

Currently Passenger will buffer file downloads generated from the apps if the client downloads slower than the app output. The buffer is stored under /tmp which has limited disk space.

One solution is to serve the file downloads directly from Nginx and bypass Passenger altogether:

location /pun/files/ {
  alias /;
  autoindex on;
  expires -1;
}

Then you can download by visiting:

https://domain.com/pun/files/path/to/file

Also, this should be added to OodAppkit.