X-Accel Support in NPM for ProjectSend? #2918
-
Hi everyone, I'm struggling to get X-Accel support working for ProjectSend. PHP file serving is working currently, but I want to get a more optimised outcome as per here: https://docs.projectsend.org/about/installation/advanced-improving-downloads When I go to enable it in the ProjectSend, it tells me to add this code to the server block (ie NGINX config):
I've tried adding this to a custom location both with a "/" location (with the above input in the code box) as well as a "/serve-file" location with the forward hostname/IP set as "192.168.1.101/app/www/public/upload/" Neither way is working - in both instances the server supplies a 6KB file instead of the actual file to be downloaded. I'm sure I'm being stupid, but any guidance anyone can give? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @shanelord01 , I was struggling with Nginx Proxy Manager, ProjectSend, and X-ACCEL for like 8 hours as well, until it hit me that I was supposed to add the code to the nginx .conf of the webserver running ProjectSend itself, not the NPM. I deployed ProjectSend using a docker hub image, so I quickly got onto the container's console and edited /config/nginx/site-confs/default.conf to add the code. After restarting the container, it finally works! It doesn't return the 6KB index.php anymore, and the correct file gets downloaded. I'm including the file below just in case
No changes were made to the proxy host in NPM. |
Beta Was this translation helpful? Give feedback.
Hi @shanelord01 , I was struggling with Nginx Proxy Manager, ProjectSend, and X-ACCEL for like 8 hours as well, until it hit me that I was supposed to add the code to the nginx .conf of the webserver running ProjectSend itself, not the NPM. I deployed ProjectSend using a docker hub image, so I quickly got onto the container's console and edited /config/nginx/site-confs/default.conf to add the code. After restarting the container, it finally works! It doesn't return the 6KB index.php anymore, and the correct file gets downloaded. I'm including the file below just in case