|
|
|
@ -8,8 +8,10 @@ using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using DryIoc;
|
|
|
|
|
using DryIoc.Microsoft.DependencyInjection;
|
|
|
|
|
using Microsoft.AspNetCore.DataProtection;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Hosting.WindowsServices;
|
|
|
|
|
using NLog;
|
|
|
|
@ -131,6 +133,7 @@ namespace Radarr.Host
|
|
|
|
|
})
|
|
|
|
|
.ConfigureWebHost(builder =>
|
|
|
|
|
{
|
|
|
|
|
builder.UseConfiguration(config);
|
|
|
|
|
builder.UseUrls(urls.ToArray());
|
|
|
|
|
builder.UseKestrel(options =>
|
|
|
|
|
{
|
|
|
|
@ -186,6 +189,7 @@ namespace Radarr.Host
|
|
|
|
|
var appFolder = new AppFolderInfo(context);
|
|
|
|
|
return new ConfigurationBuilder()
|
|
|
|
|
.AddXmlFile(appFolder.GetConfigPath(), optional: true, reloadOnChange: false)
|
|
|
|
|
.AddInMemoryCollection(new List<KeyValuePair<string, string>> { new ("dataProtectionFolder", appFolder.GetDataProtectionPath()) })
|
|
|
|
|
.Build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|