quickfix: nginx: have nginx serve the fallback index.html with a 200 instead of a 404 (#1742)

Nginx serves index.html for all pages, but with a 404. This changes it
to instead return a 200.
This commit is contained in:
Ilya Kreymer 2024-04-24 07:09:08 +02:00 committed by GitHub
parent d446857cea
commit 6232103e60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,12 +34,10 @@ server {
root /usr/share/nginx/html;
}
# fallback to index for any page
error_page 404 /index.html;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
# serve replay service worker, RWP_BASE_URL set in Dockerfile