diff --git a/docker/web/nginx.cloud.conf b/docker/web/nginx.cloud.conf index dcd5bc9..3cc81b3 100644 --- a/docker/web/nginx.cloud.conf +++ b/docker/web/nginx.cloud.conf @@ -18,6 +18,15 @@ server { client_max_body_size 20m; } + # When accessed directly (localhost:8515) instead of via Caddy (/kiwi path-strip), + # Vite's /kiwi base URL means assets are requested at /kiwi/assets/... but stored + # at /assets/... in nginx's root. Alias /kiwi/ → root so direct port access works. + # ^~ prevents regex locations from overriding this prefix match for /kiwi/ paths. + location ^~ /kiwi/ { + alias /usr/share/nginx/html/; + try_files $uri $uri/ /index.html; + } + location = /index.html { add_header Cache-Control "no-cache, no-store, must-revalidate"; try_files $uri /index.html;