luigi311 / tanoshi-extensions

2 stars 1 forks source link

Cloudflare issues #3

Open luigi311 opened 1 year ago

luigi311 commented 1 year ago

Looks like tanoshi is running into cloudflare issues causing the following to fail manhuafast nhentai reeaperscans 365manga

I am getting the same issue with tachiyomi but since tachiyomi runs on the android device it allows you to open up the page to get passed the cloudflare page and let tachiyomi work. This is not an option for tanoshi since the server that runs tanoshi would need to open up the page and get passed cloudflare.

aparo commented 3 weeks ago

A possible solution could be the integration a CloudFlare resolver proxy such as: https://github.com/FlareSolverr/FlareSolverr to be run along side to tanoshi in a parallel container

luigi311 commented 3 weeks ago

This is great! That would make it way easier. Need to see what would be an easy way to handle this

luigi311 commented 2 weeks ago

@aparo Looks like ureq which the extensions are all using for requests has support for ALL_PROXY/HTTPS_PROXY/HTTP_PROXY so theres nothing really that needs to be done on my side. Im going in the tests again and use FlareSolverr as a proxy that way i can do testing again. Thank you very much for pointing me in that direction

luigi311 commented 2 weeks ago

Actually this may not work for everything right now. Looks like flaresolverr has issues accessing certain pages like anything on github so its not possible to run it with tanoshi and pull in extension updates. I might actually need to make some changes on here so it will let me manually set a variable so its only used for the extensions themselves.

luigi311 commented 2 weeks ago

So i added in extension_proxy so we can proxy on the extensions only but i just realized why they were failing to begin with, flaresolverr isnt a actual proxy. You need to build support for its calls which is why the curl commands for it look weird. It doesnt work for example if you use curl --proxy