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;
}
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:
Then you can download by visiting:
https://domain.com/pun/files/path/to/file
Also, this should be added to
OodAppkit
.