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

View File

@@ -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<QuartzConfig>(configuration.GetSection(nameof(QuartzConfig)))
.Configure<QBitConfig>(configuration.GetSection(nameof(QBitConfig)))
.Configure<SonarrConfig>(configuration.GetSection(nameof(SonarrConfig)));
private static IServiceCollection AddServices(this IServiceCollection services) =>

View File

@@ -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": ""
}
]
}
}