Jellyfin Forum
Jelyfin behind Apache with basic auth - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Jelyfin behind Apache with basic auth (/t-jelyfin-behind-apache-with-basic-auth)



Jelyfin behind Apache with basic auth - Rickendude - 2024-12-24

Hello.
TLDR: Is there a way to setup basic auth for Apache's reverse proxy with Jellyfin?

I've setup Jellyfin behind apache with ssl enabled, everything seems to be working fine and it was really simple.

I am, however, slightly paranoid and I'd like to have everything behind apache's basic auth to avoid exposing jellyfin directly to the internet.

When I setup the basic auth it keeps popping up the login request, it actually works: After I put in the login details Jellyfin's login appears but the login popup keeps jumping.
In the apache error logs I see a few "AH01614: client used wrong authentication scheme"

I also see a lot of "pending" requests when looking at chrome's developer tools.

apache config:

Code:
<Location /jf>
    ProxyPreserveHost On
    ProxyPass "http://127.0.0.1:8096/jf"
    ProxyPassReverse "http://127.0.0.1:8096/jf"
RequestHeader unset Authorization #tried with and without
AuthUserFile "/my/htpasswd_path"
AuthName "Restricted area"
AuthType Basic
require valid-user
</Location>

Appreciate your thoughts here, thanks


RE: Jelyfin behind Apache with basic auth - TheDreadPirate - 2024-12-24

AFAIK Jellyfin does not support basic auth on top of its own basic auth.

https://github.com/jellyfin/jellyfin-android/issues/123