Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring
TypeScript diagramhomelabhomelab-infrastructure-observabilitynetworkproxmox-veself-hostedzigbeezwavezwave-js
fix: use standalone nginx config without backend upstream in standalone mode
Pouzor7dbd625ff21f
diff --git a/Dockerfile.frontend b/Dockerfile.frontendindex d311a93..a492af7 100644--- a/Dockerfile.frontend+++ b/Dockerfile.frontend@@ -16,7 +16,13 @@ FROM nginx:alpineCOPY --from=builder /app/dist /usr/share/nginx/html-# Nginx config: proxy /api and /ws to backend, serve SPA+# Nginx config: use standalone config (no backend proxy) or full config+ARG VITE_STANDALONE=falseCOPY docker/nginx.conf /etc/nginx/conf.d/default.conf+COPY docker/nginx.standalone.conf /etc/nginx/conf.d/nginx.standalone.conf+RUN if [ "$VITE_STANDALONE" = "true" ]; then \+ cp /etc/nginx/conf.d/nginx.standalone.conf /etc/nginx/conf.d/default.conf; \+ fi && \+ rm /etc/nginx/conf.d/nginx.standalone.confEXPOSE 80diff --git a/docker/nginx.standalone.conf b/docker/nginx.standalone.confnew file mode 100644index 0000000..0038534--- /dev/null+++ b/docker/nginx.standalone.conf@@ -0,0 +1,11 @@+server {+ listen 80;+ server_name _;+ root /usr/share/nginx/html;+ index index.html;++ # SPA fallback — no backend proxy+ location / {+ try_files $uri $uri/ /index.html;+ }+}