Add debug Redis configuration support, enhance Redis connection handling, and refactor worker status endpoint

This commit is contained in:
Jeppe Bundgaard
2026-03-24 10:09:37 +01:00
parent de89c4d635
commit ac164a5e81
5 changed files with 41 additions and 17 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ if (isset($_ENV['USE_ENV']) && $_ENV['USE_ENV'] === 'true') {
'REDIS_CONFIG_DATABASE' => 'database',
'REDIS_CONFIG_PASSWORD' => 'password',
'REDIS_CONFIG_PORT' => 'port',
'REDIS_CONFIG_USER' => 'user'
'REDIS_CONFIG_USER' => 'user',
'REDIS_CONFIG_DEBUG_PASSWORD' => 'debug_password'
];
$dbTarget = strtolower(trim((string)($_ENV['CONFIG_DB_TARGET'] ?? 'live')));
if ($dbTarget !== 'live' && $dbTarget !== 'debug') {