linuxserver / reverse-proxy-confs

These confs are pulled into our SWAG image: https://github.com/linuxserver/docker-swag
GNU General Public License v3.0
1.33k stars 299 forks source link

fix: bypass auth for kavita api endpoint #574

Closed YodaDaCoda closed 1 year ago

YodaDaCoda commented 1 year ago

linuxserver.io



Description

Bypass authelia etc for api access to kavita - permits use of OPDS endpoints while auth is in use.

Benefits of this PR and context

With the current config, when using one of the auth options, access to the OPDS endpoint is captured by nginx & redirected to auth. This adds a bypass for the /api endpoint which uses a token system.

How Has This Been Tested?

Implemented the changes on my local system & tested access with Librera on android. Does not work without this change, works with.

Source / References

Changes taken from Kavita's docs: https://wiki.kavitareader.com/en/install/access-kavita-from-network/reverse-proxy/swag-example