feat(infra): configure beta deployment to Test environment with hardened security and feature flags
This commit is contained in:
@@ -56,9 +56,14 @@ public static class DependencyInjection
|
||||
var qdrantUrl = configuration.GetConnectionString("QdrantConnection") ?? "http://localhost:6334";
|
||||
services.AddSingleton<QdrantClient>(sp => new QdrantClient(new Uri(qdrantUrl)));
|
||||
|
||||
// Neo4j Driver registration
|
||||
// Neo4j Driver registration (supports optional authentication)
|
||||
var neo4jUrl = configuration.GetConnectionString("Neo4jConnection") ?? "bolt://localhost:7687";
|
||||
services.AddSingleton<IDriver>(sp => GraphDatabase.Driver(neo4jUrl, AuthTokens.None));
|
||||
var neo4jUser = configuration["Neo4j:Username"];
|
||||
var neo4jPass = configuration["Neo4j:Password"];
|
||||
var neo4jAuth = !string.IsNullOrEmpty(neo4jUser)
|
||||
? AuthTokens.Basic(neo4jUser, neo4jPass ?? string.Empty)
|
||||
: AuthTokens.None;
|
||||
services.AddSingleton<IDriver>(sp => GraphDatabase.Driver(neo4jUrl, neo4jAuth));
|
||||
|
||||
// Hangfire registration
|
||||
if (!string.IsNullOrEmpty(pgConnectionString))
|
||||
|
||||
Reference in New Issue
Block a user