timvisee / send

:mailbox_with_mail: Simple, private file sharing. Mirror of https://gitlab.com/timvisee/send
https://send.vis.ee
Mozilla Public License 2.0
4.36k stars 253 forks source link

Nginx Proxy won't upload files #156

Closed xbdmHQ closed 1 year ago

xbdmHQ commented 1 year ago

Hi,

i setup my own send instance, but when i go and test it won't upload. i think i may of done something wrong but i done everything correctly

Chiogros commented 1 year ago

Hi,

Try to use these headers in your server's / location.

server {
        [...]

        location / {
                proxy_pass http://<your-send-instance-IP>;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr; 
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header Host $http_host;
                proxy_pass_header Authorization;
        }
}

Hope it helps.

xbdmHQ commented 1 year ago

Ok, I will try it out

xbdmHQ commented 1 year ago

proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_pass_header Authorization; } }

Ok, thanks for that config, and also found the issue it was the Redis. I had to remove it and it worked!