Add Https port to service collection

This commit is contained in:
Claus Vium 2020-09-03 00:38:52 +02:00
parent 5813f8073c
commit 6ff372a550

View File

@ -46,6 +46,10 @@ namespace Jellyfin.Server
{ {
services.AddResponseCompression(); services.AddResponseCompression();
services.AddHttpContextAccessor(); services.AddHttpContextAccessor();
services.AddHttpsRedirection(options =>
{
options.HttpsPort = _serverApplicationHost.HttpsPort;
});
services.AddJellyfinApi( services.AddJellyfinApi(
_serverConfigurationManager.Configuration.BaseUrl.TrimStart('/'), _serverConfigurationManager.Configuration.BaseUrl.TrimStart('/'),
_serverApplicationHost.GetApiPluginAssemblies()); _serverApplicationHost.GetApiPluginAssemblies());