From c313582b0bf793571c6ba66d977071825f482ef0 Mon Sep 17 00:00:00 2001 From: boban Date: Wed, 29 Apr 2026 18:47:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20UI-Routes=20auf=20UI-Domain=20beschr?= =?UTF-8?q?=C3=A4nkt=20+=20config:cache=20nach=20Update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/Ui/System/UpdatePage.php | 1 + bootstrap/app.php | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Ui/System/UpdatePage.php b/app/Livewire/Ui/System/UpdatePage.php index 27813e7..0c5a239 100644 --- a/app/Livewire/Ui/System/UpdatePage.php +++ b/app/Livewire/Ui/System/UpdatePage.php @@ -133,6 +133,7 @@ class UpdatePage extends Component if ($this->rc === 0 && !$this->postActionsDone) { @shell_exec('nohup php /var/www/mailwolt/artisan optimize:clear >/dev/null 2>&1 &'); + @shell_exec('nohup php /var/www/mailwolt/artisan config:cache >/dev/null 2>&1 &'); @shell_exec('nohup php /var/www/mailwolt/artisan health:collect >/dev/null 2>&1 &'); @shell_exec('nohup php /var/www/mailwolt/artisan settings:sync >/dev/null 2>&1 &'); $this->postActionsDone = true; diff --git a/bootstrap/app.php b/bootstrap/app.php index 2298729..33f7b0b 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -27,14 +27,23 @@ return Application::configure(basePath: dirname(__DIR__)) ->prefix('webmail') ->name('webmail.') ->group(base_path('routes/webmail.php')); + + // UI-Routes nur auf UI-Domain binden, damit webmail.* sie nicht beantwortet + $uiHost = config('clubird.domain.ui') && config('clubird.domain.base') + ? config('clubird.domain.ui') . '.' . config('clubird.domain.base') + : parse_url(config('app.url'), PHP_URL_HOST); + + Route::middleware('web') + ->domain($uiHost) + ->group(base_path('routes/web.php')); } else { Route::middleware('web') ->prefix('webmail') ->name('ui.webmail.') ->group(base_path('routes/webmail.php')); - } - Route::middleware('web')->group(base_path('routes/web.php')); + Route::middleware('web')->group(base_path('routes/web.php')); + } }, ) ->withMiddleware(function (Middleware $middleware): void {