From 5158d7b3b3b0f3b83302d9ce287a2e7c27a6328d Mon Sep 17 00:00:00 2001 From: boban Date: Thu, 23 Apr 2026 03:12:08 +0200 Subject: [PATCH] Fix: SVG-Pfade (fehlendes M) + Vite-HMR-Proxy in nginx UI-Vhost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVG paths in domain-list und installer-page hatten kein führendes 'M' im d-Attribut — Browser-Fehler behoben. Nginx UI-Vhost bekommt Proxy-Locations für /@vite/, /node_modules/, /resources/ und WebSocket /vite-hmr (Port 5173) damit npm run dev durch nginx funktioniert. Co-Authored-By: Claude Sonnet 4.6 --- mailwolt-installer/scripts/70-nginx.sh | 15 +++++++++++---- .../livewire/ui/nx/domain/domain-list.blade.php | 2 +- .../livewire/ui/system/installer-page.blade.php | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/mailwolt-installer/scripts/70-nginx.sh b/mailwolt-installer/scripts/70-nginx.sh index f54861b..822f1fd 100644 --- a/mailwolt-installer/scripts/70-nginx.sh +++ b/mailwolt-installer/scripts/70-nginx.sh @@ -343,10 +343,17 @@ CONF if [[ "${DEV_MODE}" = "1" ]]; then cat >> "$outfile" <<'CONF' - # DEV: Vite-Proxy - location ^~ /@vite/ { proxy_pass http://127.0.0.1:5173/@vite/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } - location ^~ /node_modules/ { proxy_pass http://127.0.0.1:5173/node_modules/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } - location ^~ /resources/ { proxy_pass http://127.0.0.1:5173/resources/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + # DEV: Vite-Proxy (npm run dev) + location = /vite-hmr { + proxy_pass http://127.0.0.1:5173/vite-hmr; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } + location ^~ /@vite/ { proxy_pass http://127.0.0.1:5173/@vite/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + location ^~ /node_modules/ { proxy_pass http://127.0.0.1:5173/node_modules/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + location ^~ /resources/ { proxy_pass http://127.0.0.1:5173/resources/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } CONF fi diff --git a/resources/views/livewire/ui/nx/domain/domain-list.blade.php b/resources/views/livewire/ui/nx/domain/domain-list.blade.php index 362e839..8c70da2 100644 --- a/resources/views/livewire/ui/nx/domain/domain-list.blade.php +++ b/resources/views/livewire/ui/nx/domain/domain-list.blade.php @@ -88,7 +88,7 @@ $_wmUrl = ($_wmSub && $_wmBase)
- +