Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing proxy authentication to FlareSolverr #2073

Closed
1 task done
AhmadMuj opened this issue Mar 19, 2024 · 2 comments
Closed
1 task done

Support passing proxy authentication to FlareSolverr #2073

AhmadMuj opened this issue Mar 19, 2024 · 2 comments
Labels
Type: Feature Request Issue is a feature request.

Comments

@AhmadMuj
Copy link

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Is your feature request related to a problem? Please describe

The problem is that I'm in a country where indexers like 1337x.to are blocked.

While this is an easy problem to solve knowing that I have a NordVPN subscription, I can easily use my account to enable a Socks5 general proxy in prowlarr but the problem is that 1337x.to now has a cloudflare protection.

To solve the cloudflare problem, I had to use FlareSolverr as stated.

FlareSolverr is not using the general proxy defined in prowlarr which leads back to the first problem of 1337x.to is blocked in my country.

I checked the code that is related to the proxy to FlareSolverr and it's explicitly stating to ignore the proxy if there is a username and password which is the core of the problem

var proxyUrl = proxySettings != null && proxySettings.Username.IsNullOrWhiteSpace() && proxySettings.Password.IsNullOrWhiteSpace() ? GetProxyUri(proxySettings) : null;

Describe the solution you'd like

I would like for the prowlarr to actually send the username and password of the proxy to flaresolverr because flaresolverr explicitly supports that. @

Describe alternatives you've considered

I have considered using a docker vpn container like GluetunVPN and then changing the default gateway for flaresolverr to go through the VPN but it's not a straight forward operation and the whole problem could be easily solved.

Anything else?

The line that needs a change

https://github.com/Prowlarr/Prowlarr/blob/develop/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs#L107

https://github.com/Prowlarr/Prowlarr/blob/develop/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs#L213

flaresolverr support for Socks5 with auth
https://github.com/FlareSolverr/FlareSolverr?tab=readme-ov-file#-sessionscreate

@AhmadMuj AhmadMuj added Status: Needs Triage New Issue needing triage Type: Feature Request Issue is a feature request. labels Mar 19, 2024
@mynameisbogdan
Copy link
Contributor

FYI docker supports quite easily a proxy by passing some envs:

docker run \
    -e HTTP_PROXY=http://username:password@proxy2.domain.com \
    -e HTTPS_PROXY=http://username:password@proxy2.domain.com \
    flaresolverr/flaresolverr

@mynameisbogdan mynameisbogdan removed the Status: Needs Triage New Issue needing triage label Mar 19, 2024
@AhmadMuj
Copy link
Author

First of all, thank you for the fast response and the quick implementation. Appreciate it.
Regarding the HTTPS_PROXY, I didn't know that docker supports that natively, I was looking into flaresolverr environment variables to find something like this.
Thank you again !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request Issue is a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants