diff --git a/app/Filament/Admin/Resources/NodeResource/Pages/EditNode.php b/app/Filament/Admin/Resources/NodeResource/Pages/EditNode.php index 69d3200937..e55cf8d8ce 100644 --- a/app/Filament/Admin/Resources/NodeResource/Pages/EditNode.php +++ b/app/Filament/Admin/Resources/NodeResource/Pages/EditNode.php @@ -229,7 +229,22 @@ public function form(Forms\Form $form): Forms\Form 'http' => 'tabler-lock-open-off', 'https' => 'tabler-lock', ]) - ->default(fn () => request()->isSecure() ? 'https' : 'http'), ]), + ->default(fn () => request()->isSecure() ? 'https' : 'http'), + ToggleButtons::make('behind_proxy') + ->helperText('If you are running the daemon behind a proxy such as Cloudflare, select this to have the daemon skip looking for certificates on boot.') + ->inline() + ->default(false) + ->live() + ->options([ + false => 'No', + true => 'Yes', + ]) + ->colors([ + false => 'danger', + true => 'primary', + ]) + ->columnSpan(1), + ]), Tab::make('Advanced Settings') ->columns([ 'default' => 1, @@ -510,7 +525,7 @@ public function form(Forms\Form $form): Forms\Form Textarea::make('config') ->label('/etc/pelican/config.yml') ->disabled() - ->rows(19) + ->rows(20) ->hintAction(CopyAction::make()) ->columnSpanFull(), Grid::make() diff --git a/app/Models/Node.php b/app/Models/Node.php index 3a1cb4ce33..b444d59ba5 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -202,6 +202,7 @@ public function getConfiguration(): array ], 'allowed_mounts' => $this->mounts->pluck('source')->toArray(), 'remote' => route('filament.app.resources...index'), + 'ignore_panel_config_updates' => $this->behind_proxy, ]; }