Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GovukProxy::StaticProxy for development #261

Merged
merged 6 commits into from
Sep 5, 2022
Merged

Commits on Aug 31, 2022

  1. Add rack-proxy gem dependency

    This is library allows us to add rack middleware to proxy requests.
    theseanything committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    e6e3644 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Add GovukProxy::StaticProxy class

    This class can be loaded as Rack middleware and will proxy any requests
    with the path prefix of `/assets/static` to backend specified. This is
    useful as it enables Static to use relative paths and the dependent
    frontend application can forward those requests. This allows us to
    switch Static to use relative path and allow us to have development
      environment and not run Static locally (i.e. forward request to
      production version of Static).
    theseanything committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8f2d3bb View commit details
    Browse the repository at this point in the history
  2. Add Plek dependency

    This is library allows us to resolve the URL for Static.
    theseanything committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    b664516 View commit details
    Browse the repository at this point in the history
  3. Enable Static proxy behaviour via GOVUK_PROXY_STATIC_ENABLED

    This adds a railtie to initialise the proxy middleware with backend set
    to the URL resolved by Plek for Static. This allows frontend apps to
    enable the proxying behavior in development by simply setting the env
    var GOVUK_PROXY_STATIC_ENABLED to "true".
    theseanything committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    511a0b2 View commit details
    Browse the repository at this point in the history
  4. Update changelog

    theseanything committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    ef546c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Bump version to 4.9.0

    theseanything committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    a3495bc View commit details
    Browse the repository at this point in the history