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 2cd2883 commit d64412d
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 @@ -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://www.gov.uk/api"
},
Expand Down
1 change: 1 addition & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.gov.uk/api} \
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 d64412d

Please sign in to comment.