linuxserver / docker-projectsend

GNU General Public License v3.0
72 stars 26 forks source link

[FEAT] Implement X-Accel for downloading files #42

Open rfranks-securenet opened 2 months ago

rfranks-securenet commented 2 months ago

Is this a new feature request?

Wanted change

Implement a location block within the nginx configuration to allow the use of X-Accel for downloading files. The configuration required is documented within the General page under Settings within ProjectSend, copied below:

X-Accel is a method available in nginx that allows the system to serve files directly, bypassing php and it's limitations. To configure it, you need to edit your server block and add the following code:

location /serve-file {
    internal;
    alias /app/www/public/upload/;
}

Reason for change

This takes the load off PHP for downloading files, speeding up the download, removing the overhead of passing it through PHP, and bypassing the limitations of downloading a file via PHP

Proposed code change

No response

github-actions[bot] commented 2 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

LinuxServer-CI commented 4 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.