fixed configuration

This commit is contained in:
Flaminel
2024-11-09 21:53:03 +02:00
parent 04961f6d04
commit 4cae378e69
2 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
using Common.Configuration; using Common.Configuration;
using Executable.Jobs; using Executable.Jobs;
using Infrastructure.Verticals.FrozenTorrent; using Infrastructure.Verticals.FrozenTorrent;
@@ -18,6 +18,7 @@ public static class DependencyInjection
private static IServiceCollection AddConfiguration(this IServiceCollection services, IConfiguration configuration) => private static IServiceCollection AddConfiguration(this IServiceCollection services, IConfiguration configuration) =>
services services
.Configure<QuartzConfig>(configuration.GetSection(nameof(QuartzConfig))) .Configure<QuartzConfig>(configuration.GetSection(nameof(QuartzConfig)))
.Configure<QBitConfig>(configuration.GetSection(nameof(QBitConfig)))
.Configure<SonarrConfig>(configuration.GetSection(nameof(SonarrConfig))); .Configure<SonarrConfig>(configuration.GetSection(nameof(SonarrConfig)));
private static IServiceCollection AddServices(this IServiceCollection services) => private static IServiceCollection AddServices(this IServiceCollection services) =>
+5 -2
View File
@@ -3,7 +3,8 @@
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
"Microsoft.Hosting.Lifetime": "Warning", "Microsoft.Hosting.Lifetime": "Warning",
"Quartz": "Warning" "Quartz": "Warning",
"System.Net.Http.HttpClient": "Error"
} }
}, },
"QuartzConfig": { "QuartzConfig": {
@@ -14,10 +15,12 @@
"Username": "", "Username": "",
"Password": "" "Password": ""
}, },
"SonarrConfig": [ "SonarrConfig": {
"Instances": [
{ {
"Url": "http://localhost:8989", "Url": "http://localhost:8989",
"ApiKey": "" "ApiKey": ""
} }
] ]
}
} }