Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Update dc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-struk committed Mar 7, 2023
1 parent 1af0330 commit 7d4fb9f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions openshift/templates/react-frontend/dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,33 +149,35 @@ objects:
}
}
handle /* {
handle /digital-plan* {
# for app
root * /opt/app-root/src
file_server
encode gzip
try_files {path} {path}/ /index.html
try_files {path} {path}/ /index-digital-plan.html
header / {
# prevent any static html from being cached
Cache-Control "public, max-age=0, must-revalidate"
}
}
handle /digital-plan* {
handle /* {
# for app
root * /opt/app-root/src
file_server
encode gzip
try_files {path} {path}/ /index-digital-plan.html
try_files {path} {path}/ /index.html
header / {
# prevent any static html from being cached
Cache-Control "public, max-age=0, must-revalidate"
}
}
log {
output stderr
Expand Down

0 comments on commit 7d4fb9f

Please sign in to comment.