Allow to debug KnownProxies #6842

Open
opened 2025-12-22 04:52:41 +01:00 by backuprepo · 2 comments
Owner

Originally created by @bdovaz on GitHub (Mar 24, 2025).

I am configuring Swag + Jellyfin + Authelia and I have a problem with the X-Forwarded-* headers not being processed as it says here:

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-9.0#forwarded-headers

The problem is that I don't know what happens in this method because there is no logger configured....

516754c2a6/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs (L272)

I guess there is no way to debug all this if not creating a PR with logger.LogDebug() calls right? I guess it would be very useful because otherwise you go blindly without knowing if the value configured in Advanced -> Networking -> Known proxies is correct.

Originally created by @bdovaz on GitHub (Mar 24, 2025). I am configuring Swag + Jellyfin + Authelia and I have a problem with the `X-Forwarded-*` headers not being processed as it says here: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-9.0#forwarded-headers The problem is that I don't know what happens in this method because there is no logger configured.... https://github.com/jellyfin/jellyfin/blob/516754c2a6fba1c2449a34a30ffa7f9ec2f940dd/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs#L272 I guess there is no way to debug all this if not creating a PR with `logger.LogDebug()` calls right? I guess it would be very useful because otherwise you go blindly without knowing if the value configured in `Advanced -> Networking -> Known proxies` is correct.
backuprepo added the
enhancement
stale
labels 2025-12-22 04:52:41 +01:00
Author
Owner

@jellyfin-bot commented on GitHub (Jul 22, 2025):

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

@jellyfin-bot commented on GitHub (Jul 22, 2025): This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs. If you have any questions you can use one of several ways to [contact us](https://jellyfin.org/contact).
Author
Owner

@bdovaz commented on GitHub (Jul 22, 2025):

Still relevant

@bdovaz commented on GitHub (Jul 22, 2025): Still relevant
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#6842
No description provided.