diff --git a/backend/src/Host/Program.cs b/backend/src/Host/Program.cs index e73f20a..6f1384e 100644 --- a/backend/src/Host/Program.cs +++ b/backend/src/Host/Program.cs @@ -49,7 +49,7 @@ var builder = WebApplication.CreateBuilder(args); // Маппинг стандартных переменных окружения в иерархию .NET var envMappings = new Dictionary { - ["ConnectionStrings:DefaultConnection"] = builder.Configuration["DATABASE_URL"] ?? "Host=localhost;Database=knot;Username=postgres;Password=postgres", + ["ConnectionStrings:DefaultConnection"] = builder.Configuration["DATABASE_URL"] ?? builder.Configuration.GetConnectionString("DefaultConnection") ?? "Host=localhost;Database=knot;Username=postgres;Password=postgres", ["ConnectionStrings:MongoConnection"] = builder.Configuration["MONGO_CONNECTION"], ["Jwt:Secret"] = builder.Configuration["JWT_SECRET"], ["Jwt:Issuer"] = builder.Configuration["JWT_ISSUER"],