getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.69k stars 119 forks source link

[Bug Report] OPDS not working with "auth_proxy_header_name" set up #255

Open totof-l opened 2 years ago

totof-l commented 2 years ago

Describe the bug OPDS not working with "auth_proxy_header_name" set up.

To Reproduce I have installed a new docker instance of Mango. Without setting up "auth_proxy_header_name" in the config file, I can add http://IP:PORT/opds to the KyBook 3 app. But when I change the config file with this line : _auth_proxy_headername: "X-WEBAUTH-USER" , it doesn't work.

Expected behavior Access to the Mango OPDS feed from the KyBook 3 iOS app.

Environment (please complete the following information):

Additional context

I also use Calibre-Web with Auth Proxy and OPDS, and I don't have this issue.

Screenshot : Error

hkalexling commented 2 years ago

Did you set up your reverse proxy? If KyBook directly accesses Mango with IP + port it probably doesn't go through your reverse proxy, and therefore not setting the X-WEBAUTH-USER header.

totof-l commented 2 years ago

Initially, I was trying with the HTTPS URL (so with a reverse proxy) of my main Mango instance. So same issue with both IP:PORT or HTTPS. As a workaround, i‘ve set another instance of Mango just for OPDS, without the header. It's working with both IP:PORT and HTTPS.

haygoodhtpc commented 2 years ago

Having a similar issue. I get a 404 when I try to go to /opds. Any ideas?

hkalexling commented 2 years ago

@haygoodhtpc Oops the route was accidentally deleted in a recent commit. I will do a bug fix release soon.

hkalexling commented 2 years ago

@haygoodhtpc The 404 issue has been fixed in v0.26.2

haygoodhtpc commented 2 years ago

confirmed working at of v0.26.2!