From 0d41409e51a01a017eb8615b55c611e9b7a61fa8 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Thu, 1 Sep 2022 16:49:45 +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 ea12c79f2f..b5187d0dd6 100644 --- a/app.json +++ b/app.json @@ -9,6 +9,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 e2e3f38432..857a592c5f 100755 --- a/startup.sh +++ b/startup.sh @@ -5,6 +5,7 @@ bundle check || bundle install if [[ $1 == "--live" ]] ; then GOVUK_APP_DOMAIN=www.gov.uk \ GOVUK_WEBSITE_ROOT=https://www.gov.uk \ + GOVUK_PROXY_STATIC_ENABLED=true \ PLEK_SERVICE_LICENSIFY_URI=${PLEK_SERVICE_LICENSIFY_URI-https://licensify.publishing.service.gov.uk} \ PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.gov.uk/api} \ PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} \