This commit is contained in:
Hamza-Ayed
2026-04-28 14:14:11 +03:00
parent 76d06a4140
commit 3fa9aee14e
6 changed files with 21 additions and 20 deletions

View File

@@ -218,7 +218,7 @@ class JwtService
// ── Internal API Key — للـ get_connect.php ─────────────
public static function validateInternalKey(): void
{
$keyPath = '/home/intaleq-api/.internal_socket_key';
$keyPath = getenv('INTERNAL_SOCKET_KEY_PATH');
$sent = $_SERVER['HTTP_X_INTERNAL_KEY'] ?? '';
$expected = (file_exists($keyPath) ? trim(file_get_contents($keyPath)) : '') ?: 'Intaleq_Secure_Bridge_Key_2026_@!socket';