Update: 2026-07-22 23:27:18

This commit is contained in:
Hamza-Ayed
2026-07-22 23:27:18 +03:00
parent b83ca1f664
commit b86f95c90d
3 changed files with 2 additions and 17 deletions
+1
View File
@@ -10,6 +10,7 @@ function getInternalKey(): string {
if ($envKey) return trim($envKey);
$path = getenv('INTERNAL_SOCKET_KEY_PATH');
if ($path && file_exists($path)) return trim((string)@file_get_contents($path));
if (file_exists(__DIR__ . '/../loction-keys/.internal_socket_key')) return trim((string)@file_get_contents(__DIR__ . '/../loction-keys/.internal_socket_key'));
if (file_exists('/keys/.internal_socket_key')) return trim((string)@file_get_contents('/keys/.internal_socket_key'));
if (file_exists('/home/location/.internal_socket_key')) return trim((string)@file_get_contents('/home/location/.internal_socket_key'));
return '';