mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #4636 from jellyfin/MissedOne
[Fix for 10.7] Missed a config move
This commit is contained in:
commit
fdd8b34cc1
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,8 @@ namespace Jellyfin.Server
|
||||||
app.UseBaseUrlRedirection();
|
app.UseBaseUrlRedirection();
|
||||||
|
|
||||||
// Wrap rest of configuration so everything only listens on BaseUrl.
|
// Wrap rest of configuration so everything only listens on BaseUrl.
|
||||||
app.Map(_serverConfigurationManager.GetNetworkConfiguration().BaseUrl, mainApp =>
|
var config = _serverConfigurationManager.GetNetworkConfiguration();
|
||||||
|
app.Map(config.BaseUrl, mainApp =>
|
||||||
{
|
{
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
|
@ -122,8 +123,7 @@ namespace Jellyfin.Server
|
||||||
|
|
||||||
mainApp.UseCors();
|
mainApp.UseCors();
|
||||||
|
|
||||||
if (_serverConfigurationManager.GetNetworkConfiguration().RequireHttps
|
if (config.RequireHttps && _serverApplicationHost.ListenWithHttps)
|
||||||
&& _serverApplicationHost.ListenWithHttps)
|
|
||||||
{
|
{
|
||||||
mainApp.UseHttpsRedirection();
|
mainApp.UseHttpsRedirection();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue