Bug fixin....
This commit is contained in:
+7
-1
@@ -36,7 +36,7 @@ builder.Services.AddSession(options =>
|
||||
options.IdleTimeout = TimeSpan.FromHours(8);
|
||||
options.Cookie.HttpOnly = true;
|
||||
options.Cookie.IsEssential = true;
|
||||
options.Cookie.Name = ".VoidScavengers.Admin";
|
||||
options.Cookie.Name = ".VoidScavengers.Admin.2";
|
||||
});
|
||||
|
||||
// ---- MySQL conn string from env ----
|
||||
@@ -61,6 +61,12 @@ builder.Services.AddOptions<DatabaseOptions>()
|
||||
|
||||
// Redis + zone leases + WAL
|
||||
builder.Services.AddSingleton<IRedisManager, RedisManager>();
|
||||
builder.Services.AddSingleton<IConnectionMultiplexer>(_ =>
|
||||
{
|
||||
var cs = RedisManager.BuildRedisConnectionStringFromEnv()
|
||||
?? throw new Exception("REDIS_CONNECTION_STRING required");
|
||||
return ConnectionMultiplexer.Connect(cs);
|
||||
});
|
||||
builder.Services.AddScoped<IAccountsRepository, AccountsRepository>();
|
||||
builder.Services.AddScoped<ISessionAudit, SessionAudit>();
|
||||
builder.Services.AddSingleton<IPasswordHasher, Pbkdf2PasswordHasher>();
|
||||
|
||||
Reference in New Issue
Block a user