From 4cae378e69a5bc9675139cceb7feb4829c7e4c6a Mon Sep 17 00:00:00 2001 From: Flaminel Date: Sat, 9 Nov 2024 21:53:03 +0200 Subject: [PATCH] fixed configuration --- code/Executable/DependencyInjection.cs | 3 ++- code/Executable/appsettings.json | 17 ++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/code/Executable/DependencyInjection.cs b/code/Executable/DependencyInjection.cs index 4e9a28af..e61b84ca 100644 --- a/code/Executable/DependencyInjection.cs +++ b/code/Executable/DependencyInjection.cs @@ -1,4 +1,4 @@ -using Common.Configuration; +using Common.Configuration; using Executable.Jobs; using Infrastructure.Verticals.FrozenTorrent; @@ -18,6 +18,7 @@ public static class DependencyInjection private static IServiceCollection AddConfiguration(this IServiceCollection services, IConfiguration configuration) => services .Configure(configuration.GetSection(nameof(QuartzConfig))) + .Configure(configuration.GetSection(nameof(QBitConfig))) .Configure(configuration.GetSection(nameof(SonarrConfig))); private static IServiceCollection AddServices(this IServiceCollection services) => diff --git a/code/Executable/appsettings.json b/code/Executable/appsettings.json index d3f0686c..1c7360a5 100644 --- a/code/Executable/appsettings.json +++ b/code/Executable/appsettings.json @@ -3,7 +3,8 @@ "LogLevel": { "Default": "Information", "Microsoft.Hosting.Lifetime": "Warning", - "Quartz": "Warning" + "Quartz": "Warning", + "System.Net.Http.HttpClient": "Error" } }, "QuartzConfig": { @@ -14,10 +15,12 @@ "Username": "", "Password": "" }, - "SonarrConfig": [ - { - "Url": "http://localhost:8989", - "ApiKey": "" - } - ] + "SonarrConfig": { + "Instances": [ + { + "Url": "http://localhost:8989", + "ApiKey": "" + } + ] + } }