Add debug Redis configuration support, enhance Redis connection handling, and refactor worker status endpoint
This commit is contained in:
+2
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user