fix(ui): Serve react index file for all page urls (#642)

This commit is contained in:
Bas Schoenmaeckers 2022-07-27 18:40:45 +02:00 committed by GitHub
parent 819aefb86e
commit 772261fef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,9 @@ server {
listen [::]:8080 default_server;
root /var/www/openreplay;
index index.html;
rewrite ^((?!.(js|css|png|svg|jpg|woff|woff2)).)*$ /index.html break;
proxy_intercept_errors on; # see frontend://nginx.org/en/docs/frontend/ngx_frontend_proxy_module.html#proxy_intercept_errors
error_page 404 =200 /index.html;
location / {
try_files $uri $uri/ =404;
}