From c287f3a74462850389695695fefa2e50158f6f60 Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Fri, 27 Feb 2026 15:45:13 -0500 Subject: [PATCH] feat: Add check_proxmox.php for Proxmox server configuration retrieval --- check_proxmox.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 check_proxmox.php diff --git a/check_proxmox.php b/check_proxmox.php new file mode 100644 index 000000000..8102f8180 --- /dev/null +++ b/check_proxmox.php @@ -0,0 +1,21 @@ +make('Illuminate\Contracts\Console\Kernel')->bootstrap(); + +// Check Server model for Proxmox config +$server = \App\Models\Server::where('extension', 'Proxmox')->first(); +if ($server) { + echo 'Server model found: ' . $server->name . PHP_EOL; + $settings = $server->settings->pluck('value', 'key')->toArray(); + foreach ($settings as $k => $v) { + if (stripos($k, 'token') !== false || stripos($k, 'password') !== false || stripos($k, 'secret') !== false) { + $settings[$k] = substr($v ?? '', 0, 8) . '...'; + } + } + echo 'Settings: ' . json_encode($settings, JSON_PRETTY_PRINT) . PHP_EOL; +} else { + echo 'Server not found' . PHP_EOL; + $all = \App\Models\Server::pluck('name', 'extension'); + echo 'Available: ' . json_encode($all, JSON_PRETTY_PRINT) . PHP_EOL; +}