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 {