SamTV12345 / PodFetch

A sleek and efficient podcast downloader.
https://samtv12345.github.io/PodFetch
Apache License 2.0
347 stars 25 forks source link

support gpodder integration with basic-auth on reverse proxy only #281

Closed Artox closed 9 months ago

Artox commented 1 year ago

Clear and concise description of the problem

Currently to enable gpodder.net integration users are guided to enable BASIC_AUTH=true or OIDC. However the auth documentation even suggests not using it: "Basic Auth is not required. If you use a reverse proxy like nginx you can use a better form ..."

I suggest to make it possible on a single-user podfetch installation to rely on the reverse proxy basic-auth, and yet enable gpodder.net integration.

GPODDER_INTEGRATION_ENABLED activated but no BASIC_AUTH or OIDC_AUTH set. Please set BASIC_AUTH or OIDC_AUTH in the .env file.

Suggested solution

I do not know how to implement a solution. Perhaps reverse proxy could forward some useful headers?

Alternative

No response

Additional context

No response

Validations

SamTV12345 commented 1 year ago

Good issue. Rather than needing another service I could also limit basic auth to the AntennaPod API. So when you open the browser you don't have to login, only on AntennaPod which is unfortunately mandatory.

SamTV12345 commented 9 months ago

This is finally resolved. Sorry for the long break.