mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Cannot use behind proxy running on a different port #211
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 @cheeseandcereal on GitHub.
Right now, the
--proxy-pathparameter allows you to run this program behind a web proxy which changes the path of a request, however it does not have a way to take into account the fact that a proxy may also be running on a different port.For example, if I run this on port 1234 with a web proxy pointing to it at path /ex which is listening on port 80, uploading a file results in the response url:
http://localhost:1234/ex/<token>/<file>This is incorrect, as to go through the proxy, the port must be 80
An option needs to be added (something like
--proxy-port) which allows you to specify the port number of a proxy fronting this service.@paolafrancesca commented on GitHub:
@cheeseandcereal this can be achieved setting the
Hostheader with the port as wellsee https://github.com/dutchcoders/transfer.sh/issues/252 for a solution on nginx
@paolafrancesca commented on GitHub:
oki
@cheeseandcereal commented on GitHub:
That's fine for an HTTP proxy which supports modifying requests, but not for something lower level like a raw TCP proxy, or simple routing/firewall rules which are forwarding between different ports
Would you accept a PR if I implemented
--proxy-port?