mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
Update Startup.cs
Missed a config move
This commit is contained in:
parent
ffd45b8df7
commit
6173534d33
@ -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 New Issue
Block a user