diff --git a/app/Console/Commands/Egg/UpdateEggIndexCommand.php b/app/Console/Commands/Egg/UpdateEggIndexCommand.php index ee80a998c..620bd5358 100644 --- a/app/Console/Commands/Egg/UpdateEggIndexCommand.php +++ b/app/Console/Commands/Egg/UpdateEggIndexCommand.php @@ -13,7 +13,7 @@ class UpdateEggIndexCommand extends Command public function handle(): int { try { - $data = Http::timeout(5)->connectTimeout(1)->get('https://raw.githubusercontent.com/pelican-eggs/pelican-eggs.github.io/refs/heads/main/content/pelican.json')->throw()->json(); + $data = Http::timeout(5)->connectTimeout(1)->get(config('panel.cdn.egg_index_url'))->throw()->json(); } catch (Exception $exception) { $this->error($exception->getMessage()); diff --git a/config/panel.php b/config/panel.php index 848b4761d..86d7e3382 100644 --- a/config/panel.php +++ b/config/panel.php @@ -18,6 +18,7 @@ return [ 'cdn' => [ 'cache_time' => 60, + 'egg_index_url' => env('PANEL_EGG_INDEX_URL', 'https://raw.githubusercontent.com/pelican-eggs/pelican-eggs.github.io/refs/heads/main/content/pelican.json'), ], 'client_features' => [