diff options
| author | Fredrik Lindberg <fli@shapeshifter.se> | 2021-08-31 22:22:55 +0200 |
|---|---|---|
| committer | Fredrik Lindberg <fli@shapeshifter.se> | 2021-09-14 21:38:11 +0200 |
| commit | 90174f68e2b477e613d756d78cbfd89c2a33f30a (patch) | |
| tree | 41e859cb6d649de2942c5997036fe831a0692f56 /Jellyfin.Networking | |
| parent | e15fea5dade9478d9667399eb0c245917d3e1513 (diff) | |
Dynamically populate LocalAddress based on HTTP request
Support populating the LocalAddress field in the system info
endpoint based on the x-forwarded-host and x-forwarded-proto header.
The x-forwarded-host header must contain both the host and port for
the url to be properly constructed.
Behind network configuration option that is disabled by default.
Diffstat (limited to 'Jellyfin.Networking')
| -rw-r--r-- | Jellyfin.Networking/Configuration/NetworkConfiguration.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Networking/Configuration/NetworkConfiguration.cs b/Jellyfin.Networking/Configuration/NetworkConfiguration.cs index faf814c06..61db223d9 100644 --- a/Jellyfin.Networking/Configuration/NetworkConfiguration.cs +++ b/Jellyfin.Networking/Configuration/NetworkConfiguration.cs @@ -226,5 +226,10 @@ namespace Jellyfin.Networking.Configuration /// Gets or sets the known proxies. If the proxy is a network, it's added to the KnownNetworks. /// </summary> public string[] KnownProxies { get; set; } = Array.Empty<string>(); + + /// <summary> + /// Gets or sets a value indicating whether the published server uri is based on information in HTTP requests. + /// </summary> + public bool EnablePublishedServerUriByRequest { get; set; } = false; } } |
