mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
502 error - Authentication popup never shown in browser #213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @srinisubramanian on GitHub.
I have a private transfer.sh instance running with authentication switched on. The setup is as follows:
Issue:
Any ideas if this is a config/landscape fix or needs a code change?
@paolafrancesca commented on GitHub:
after the progress bar in the frontend is complete
I was able to reproduce the issue letting transfer.sh listen on http and use the
X-Forwarded-Protoheaderin my current setup transer.sh is also listening on https
@srinisubramanian commented on GitHub:
Yes. My setup runs on http. If you can find a fix let me know. Else maybe I need to run internal on a self signed https certificate.
@paolafrancesca commented on GitHub:
@srinisubramanian I have exactly the same setuo and I couldn't reproduce the issue
can you post your configuration for nginx and the args for transfer.sh?
also, can you test uploading the file directly to transfer.sh with some client that support the authentication challenge?
it seems to be a issue on the nginx side
@srinisubramanian commented on GitHub:
In your case does the auth pop up immediately on the web page or after the upload is complete?
I will post the config shortly.
@paolafrancesca commented on GitHub:
if the proxy is on http it has a certificate, so you can use the same on transfer.sh (that's what I do)
I will investigate a little more on the problem
@paolafrancesca commented on GitHub:
the problem seems to be on how nginx expects response from the server when uploading file.
the transfer.sh upstream is sending a 401 before nginx finishes to upload the file, causing the 502
now I have the same issue even with https upstream
@paolafrancesca commented on GitHub:
https://blog.bigbinary.com/2016/01/07/not-using-https-might-be-breaking-file-uploads.html
@srinisubramanian commented on GitHub:
No luck @aspacca Not working. Still returns the 502 error
Here is my nginx config.
@paolafrancesca commented on GitHub:
it should be solved with http upstream and
X-Forwarded-Protoand setting the following in the block with the proxy directive:can you please try?
@srinisubramanian commented on GitHub:
Ok. So you are suggesting I just turn on https? Will do and check.
@paolafrancesca commented on GitHub:
damn, I tested only once, it worked, now not anymore
can you ask in the nginx mailing list?
@paolafrancesca commented on GitHub:
thanks
@srinisubramanian commented on GitHub:
Here’s what I did for now.
I can live with this for now :)
@srinisubramanian commented on GitHub:
Will do
@paolafrancesca commented on GitHub:
just to know, did you ask in the nginx mailing list?
otherwise I will do
@srinisubramanian commented on GitHub:
I will ask tomorrow. If you want to go ahead
@paolafrancesca commented on GitHub:
@srinisubramanian I found the solution:
proxy_request_buffering off;available from nginx 1.7.11: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_request_buffering
@paolafrancesca commented on GitHub:
@srinisubramanian just subscribed to the mailing list and waiting for confirmation email as well
https://forum.nginx.org may be an alternative if you want to try (https://forum.nginx.org/read.php?2,255)
@paolafrancesca commented on GitHub:
oki thanks
@srinisubramanian commented on GitHub:
Having trouble getting on to that mailing list. Confirmation mail never reaches, tried a couple.
@aspacca can you please post?
@srinisubramanian commented on GitHub:
@aspacca This works, thanks. Also the behavior is such that the user id/pwd is prompted right at the beginning which is good. Thanks for following up on this.