Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app-reverse-proxy/nginx-base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ proxy_set_header Host $http_host_final;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;

# intercept proxied 4xx/5xx so we can serve SPA index.html for client-side routes
proxy_intercept_errors on;

## serve frontend contents (SPA). If the frontend returns 404 for a client-side
## route, internally fall back to /index.html so the React router can handle it.
location / {
proxy_pass http://$frontend;
# intercept proxied 4xx/5xx so we can serve SPA index.html for client-side routes
proxy_intercept_errors on;
# when the proxied frontend responds 404, rewrite internally to /index.html
error_page 404 = /index.html;
}
Expand Down