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 e6015ed commit b9f5939
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://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 @@ -12,6 +12,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}
else
echo "ERROR: other startup modes are not supported"
Expand Down

0 comments on commit b9f5939

Please sign in to comment.