|
|
|
@ -21,6 +21,7 @@ using MediaBrowser.Controller.Drawing;
|
|
|
|
|
using MediaBrowser.Controller.Extensions;
|
|
|
|
|
using MediaBrowser.WebDashboard.Api;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
|
|
@ -275,10 +276,11 @@ namespace Jellyfin.Server
|
|
|
|
|
|
|
|
|
|
if (appHost.EnableHttps && appHost.Certificate != null)
|
|
|
|
|
{
|
|
|
|
|
options.Listen(
|
|
|
|
|
address,
|
|
|
|
|
appHost.HttpsPort,
|
|
|
|
|
listenOptions => listenOptions.UseHttps(appHost.Certificate));
|
|
|
|
|
options.Listen(address, appHost.HttpsPort, listenOptions =>
|
|
|
|
|
{
|
|
|
|
|
listenOptions.UseHttps(appHost.Certificate);
|
|
|
|
|
listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -289,9 +291,11 @@ namespace Jellyfin.Server
|
|
|
|
|
|
|
|
|
|
if (appHost.EnableHttps && appHost.Certificate != null)
|
|
|
|
|
{
|
|
|
|
|
options.ListenAnyIP(
|
|
|
|
|
appHost.HttpsPort,
|
|
|
|
|
listenOptions => listenOptions.UseHttps(appHost.Certificate));
|
|
|
|
|
options.ListenAnyIP(appHost.HttpsPort, listenOptions =>
|
|
|
|
|
{
|
|
|
|
|
listenOptions.UseHttps(appHost.Certificate);
|
|
|
|
|
listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|