From b9f5939e68a79dcfdcdc8cb8532f4fc66c78c604 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Thu, 1 Sep 2022 16:52:27 +0100 Subject: [PATCH] Enable Static proxy for development This sets the GOVUK_PROXY_STATIC_ENABLED env var to enable the proxy to Static in production. This is so the application continues, when Static changes to use relative URLs for assets. See https://github.com/alphagov/govuk_app_config/pull/261 and https://github.com/alphagov/govuk-puppet/pull/11801 --- app.json | 3 +++ startup.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/app.json b/app.json index 5b57e7564..4093d7263 100644 --- a/app.json +++ b/app.json @@ -8,6 +8,9 @@ "GOVUK_WEBSITE_ROOT": { "value": "https://www.gov.uk" }, + "GOVUK_PROXY_STATIC_ENABLED": { + "value": "true" + }, "PLEK_SERVICE_CONTENT_STORE_URI": { "value": "https://govuk-content-store-examples.herokuapp.com/api" }, diff --git a/startup.sh b/startup.sh index 229b653cb..48f132b8b 100755 --- a/startup.sh +++ b/startup.sh @@ -12,6 +12,7 @@ function set_env() { if [[ $1 == "--live" ]] ; then set_env "gov.uk" + export GOVUK_PROXY_STATIC_ENABLED=true export PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} else echo "ERROR: other startup modes are not supported"