From 0aa8beba02174a78636de7c02750c038269e15ab Mon Sep 17 00:00:00 2001 From: Joseph Andersen <12385932+jpandersen87@users.noreply.github.com> Date: Fri, 28 Feb 2025 13:22:20 -0600 Subject: [PATCH] Finish validation of the new dockerization of FE to eliminate 404 error (#17453) Fixes #17435 --- frontend-react/nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend-react/nginx.conf b/frontend-react/nginx.conf index 091a4d77682..5a50c19b7bb 100644 --- a/frontend-react/nginx.conf +++ b/frontend-react/nginx.conf @@ -12,6 +12,13 @@ http { index index.html index.htm; try_files $uri /index.html; # Pass all non-files to our react app } + + # For internal use (deployed environments should be redirecting /api before the request reaches here) + location /api { + proxy_ssl_server_name on; + proxy_set_header Host staging.prime.cdc.gov; + proxy_pass https://staging.prime.cdc.gov; + } } }