From 1af03305bc91986154d830f0fc6df377162fa62e Mon Sep 17 00:00:00 2001 From: ALSTRUK Date: Tue, 7 Mar 2023 05:39:44 -0800 Subject: [PATCH] Update dc.yaml digital plan route --- openshift/templates/react-frontend/dc.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/openshift/templates/react-frontend/dc.yaml b/openshift/templates/react-frontend/dc.yaml index d1ea2e22..7e86c660 100644 --- a/openshift/templates/react-frontend/dc.yaml +++ b/openshift/templates/react-frontend/dc.yaml @@ -162,6 +162,20 @@ objects: Cache-Control "public, max-age=0, must-revalidate" } } + + handle /digital-plan* { + # for app + root * /opt/app-root/src + file_server + encode gzip + + try_files {path} {path}/ /index-digital-plan.html + + header / { + # prevent any static html from being cached + Cache-Control "public, max-age=0, must-revalidate" + } + } log { output stderr