Skip to content

Commit

Permalink
Enable Static proxy for development
Browse files Browse the repository at this point in the history
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
alphagov/govuk_app_config#261 and
alphagov/govuk-puppet#11801
  • Loading branch information
theseanything committed Sep 1, 2022
1 parent 32d9a33 commit 0d41409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 0d41409

Please sign in to comment.