healthcheks
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using back.healthchecks.Options;
|
||||
using back.Options;
|
||||
|
||||
namespace back.ServicesExtensions;
|
||||
@@ -14,6 +15,8 @@ public static partial class ServicesExtensions
|
||||
services.Configure<DatabaseConfig>(DatabaseConfig.BlobStorage, config.GetSection(DatabaseConfig.BlobStorage));
|
||||
services.Configure<MailServerOptions>(config.GetSection(nameof(MailServerOptions)));
|
||||
|
||||
services.Configure<HealthChecksConfigs>(HealthChecksConfigs.Sqlite, config.GetSection(HealthChecksConfigs.Sqlite));
|
||||
|
||||
services.PostConfigure<Databases>(databases =>
|
||||
{
|
||||
if (!string.IsNullOrEmpty(databases.BaseDirectory) && !Directory.Exists(databases.BaseDirectory))
|
||||
|
||||
Reference in New Issue
Block a user