From 5602efe07b618c54dd2f706829d3a6369d461778 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Tue, 25 Mar 2025 12:38:46 +0100 Subject: [PATCH] Serve index.html for all routes --- web-frontend/nginx.conf.generic | 1 + web-frontend/nginx.conf.u-os-app | 1 + 2 files changed, 2 insertions(+) diff --git a/web-frontend/nginx.conf.generic b/web-frontend/nginx.conf.generic index 19fb1a8..d5c4d85 100644 --- a/web-frontend/nginx.conf.generic +++ b/web-frontend/nginx.conf.generic @@ -27,6 +27,7 @@ server { location / { root /var/www/browser; + try_files $uri $uri/ /index.html; } location /websockify { diff --git a/web-frontend/nginx.conf.u-os-app b/web-frontend/nginx.conf.u-os-app index 01f3ccf..af8b378 100644 --- a/web-frontend/nginx.conf.u-os-app +++ b/web-frontend/nginx.conf.u-os-app @@ -27,6 +27,7 @@ server { location / { root /var/www/browser; + try_files $uri $uri/ /index.html; } location /websockify {