From 4c2f7e5b658740da3fcf69f58eb3d44bdd03d586 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:35:34 +0000 Subject: [PATCH] fix(ente): fix nginx rewrite loop by correcting $uri escaping and adding =404 fallback --- ente/rootfs/etc/nginx/http.d/web.bak | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ente/rootfs/etc/nginx/http.d/web.bak b/ente/rootfs/etc/nginx/http.d/web.bak index 95eef1ad92..5c8a993495 100644 --- a/ente/rootfs/etc/nginx/http.d/web.bak +++ b/ente/rootfs/etc/nginx/http.d/web.bak @@ -1,20 +1,20 @@ server { listen 3000; root /www/photos; - location / { try_files \$uri \$uri.html /index.html; } + location / { try_files $uri $uri.html /index.html =404; } } server { listen 3001; root /www/accounts; - location / { try_files \$uri \$uri.html /index.html; } + location / { try_files $uri $uri.html /index.html =404; } } server { listen 3002; root /www/photos; - location / { try_files \$uri \$uri.html /index.html; } + location / { try_files $uri $uri.html /index.html =404; } } server { listen 3003; root /www/auth; - location / { try_files \$uri \$uri.html /index.html; } + location / { try_files $uri $uri.html /index.html =404; } } server { listen 3004; root /www/cast; - location / { try_files \$uri \$uri.html /index.html; } + location / { try_files $uri $uri.html /index.html =404; } }