From 50f0cb3b2b3d308e1a138684524d0f0fc5f1593d Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Tue, 6 Sep 2022 14:11:33 +0100 Subject: [PATCH] Fix Plek URL for Static in development This updates the URLs to use the asset domain and use HTTPS. This is required for the Static proxy to correctly forward request. --- app.json | 2 +- startup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 4093d7263..a6a6f0541 100644 --- a/app.json +++ b/app.json @@ -18,7 +18,7 @@ "value": "https://www.gov.uk/api" }, "PLEK_SERVICE_STATIC_URI": { - "value": "assets.digital.cabinet-office.gov.uk" + "value": "https://assets.publishing.service.gov.uk" }, "RAILS_SERVE_STATIC_ASSETS": { "value": "yes" diff --git a/startup.sh b/startup.sh index 48f132b8b..401162b3a 100755 --- a/startup.sh +++ b/startup.sh @@ -13,7 +13,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} + export PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-https://assets.publishing.service.gov.uk} else echo "ERROR: other startup modes are not supported" echo ""