mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5315] [MERGED] Fix for environment variable JELLYFIN_PublishedServerUrl being ignored. #10475
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5315
Author: @BaronGreenback
Created: 2/27/2021
Status: ✅ Merged
Merged: 3/9/2021
Merged by: @joshuaboniface
Base:
master← Head:FixFor5280Part2📝 Commits (7)
f666b7efix1d6f489comment change80ca3daMerge remote-tracking branch 'upstream/master' into FixFor5280Part2159ecb8Fixed bad synccaa8e7cfixed build8836242fixed testsd339030Update ApplicationHost.cs📊 Changes
9 files changed (+38 additions, -19 deletions)
View changed files
📝
Emby.Dlna/Main/DlnaEntryPoint.cs(+1 -1)📝
Emby.Server.Implementations/ApplicationHost.cs(+17 -9)📝
Emby.Server.Implementations/IStartupOptions.cs(+6 -6)📝
Jellyfin.Server/CoreAppHost.cs(+4 -0)📝
Jellyfin.Server/Program.cs(+1 -0)📝
Jellyfin.Server/StartupOptions.cs(+2 -2)📝
MediaBrowser.Controller/IServerApplicationHost.cs(+1 -1)📝
tests/Jellyfin.Api.Tests/JellyfinApplicationFactory.cs(+2 -0)📝
tests/Jellyfin.Api.Tests/TestAppHost.cs(+4 -0)📄 Description
Fix for the second bug reported at https://github.com/jellyfin/jellyfin/issues/5280.
GetSmartApiUrl and elsewhere reference _startupConfig.PublishedServerUrl however, this is only populated via the command-line and not via the environmental variables due to how the IConfigurationBuilder is initialised.
The result is that JELLYFIN_PublishedServerUrl as specified at https://jellyfin.org/docs/general/administration/configuration.html doesn't work.
With this PR, PublishedServerUrl returns the correct value, with the command-line taking precedent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.