Update: 2026-08-01 18:52:11
This commit is contained in:
@@ -17,6 +17,8 @@ function getInternalKey(): string {
|
||||
}
|
||||
|
||||
function getRedisPass(): ?string {
|
||||
$envPass = getenv('REDIS_MAIN_PASSWORD') ?: ($_ENV['REDIS_MAIN_PASSWORD'] ?? (getenv('REDIS_PASSWORD') ?: ($_ENV['REDIS_PASSWORD'] ?? null)));
|
||||
if ($envPass) return trim($envPass);
|
||||
$path = getenv('REDIS_PASS_KEY_PATH');
|
||||
if ($path && file_exists($path)) return trim((string)@file_get_contents($path));
|
||||
if (file_exists('/keys/.reds_pass_key')) return trim((string)@file_get_contents('/keys/.reds_pass_key'));
|
||||
|
||||
Reference in New Issue
Block a user