Skip to content

Commit

Permalink
Fix Plek URL for Static in development
Browse files Browse the repository at this point in the history
This updates the URLs to use the asset domain and use HTTPS. This
is required for the Static proxy to correctly forward request.
  • Loading branch information
theseanything committed Sep 6, 2022
1 parent a44affe commit 50f0cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 50f0cb3

Please sign in to comment.