fix(ente): fix nginx rewrite loop by correcting $uri escaping and adding =404 fallback

This commit is contained in:
copilot-swe-agent[bot]
2026-06-03 17:35:34 +00:00
committed by GitHub
parent 27fa8d0315
commit 4c2f7e5b65

View File

@@ -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; }
}