From 06c662988ab19b6b49760e4bab8280a341eb6ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Vatle?= Date: Mon, 20 Apr 2026 11:06:39 +0200 Subject: [PATCH] Feature: Add support for user-configurable egg/nests index file. (#2287) Co-authored-by: Boy132 --- app/Console/Commands/Egg/UpdateEggIndexCommand.php | 2 +- config/panel.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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' => [