govuk_app_config 9.22.3 → 9.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/govuk_app_config/railtie.rb +0 -6
- data/lib/govuk_app_config/version.rb +1 -1
- data/lib/govuk_app_config.rb +0 -1
- metadata +2 -3
- data/lib/govuk_app_config/govuk_proxy/static_proxy.rb +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7281de94bb3b8ad471321c08e8eb827af6569ddefcd22dce31ae19302252762
|
|
4
|
+
data.tar.gz: 2d7b0d73a80eff775af154d79e6e85f52dc75440cb2601c106dbd2042110c04a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56a02fd4221ec8d62348ceb96db5591e8691f9a7b7badf0f6c2172cfd2c3f17ea49841ba746dc2074b5e3ee4494618e9314136195d66f0ce7a5772fe7b501419
|
|
7
|
+
data.tar.gz: 56e2a25b6422b38722009c0d5d96d8a1d45e8adb2fe126d636ee96c4dbd014a36985d9b848bddf5ea2f253ed05bd4200fb99b8040af52dc013dc260f053482ce
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -38,7 +38,7 @@ jobs:
|
|
|
38
38
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
39
39
|
with:
|
|
40
40
|
ref: ${{ inputs.ref || github.ref }}
|
|
41
|
-
- uses: ruby/setup-ruby@
|
|
41
|
+
- uses: ruby/setup-ruby@d5f787ce339eb0767271bc01d922e85644c2c8ab # v1.280.0
|
|
42
42
|
with:
|
|
43
43
|
ruby-version: ${{ matrix.ruby }}
|
|
44
44
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,6 @@ require "plek"
|
|
|
2
2
|
|
|
3
3
|
module GovukAppConfig
|
|
4
4
|
class Railtie < Rails::Railtie
|
|
5
|
-
initializer "govuk_app_config.configure_govuk_proxy" do |app|
|
|
6
|
-
if ENV["GOVUK_PROXY_STATIC_ENABLED"] == "true"
|
|
7
|
-
app.middleware.use GovukProxy::StaticProxy, backend: Plek.find("static")
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
|
|
11
5
|
initializer "govuk_app_config.configure_open_telemetry" do |app|
|
|
12
6
|
unless Rails.const_defined?(:Console)
|
|
13
7
|
GovukOpenTelemetry.configure(app.class.module_parent_name.underscore)
|
data/lib/govuk_app_config.rb
CHANGED
|
@@ -2,7 +2,6 @@ require "govuk_app_config/govuk_error"
|
|
|
2
2
|
require "govuk_app_config/govuk_healthcheck"
|
|
3
3
|
require "govuk_app_config/govuk_open_telemetry"
|
|
4
4
|
require "govuk_app_config/govuk_prometheus_exporter"
|
|
5
|
-
require "govuk_app_config/govuk_proxy/static_proxy"
|
|
6
5
|
require "govuk_app_config/govuk_statsd"
|
|
7
6
|
require "govuk_app_config/version"
|
|
8
7
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_app_config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.
|
|
4
|
+
version: 9.23.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -398,7 +398,6 @@ files:
|
|
|
398
398
|
- lib/govuk_app_config/govuk_json_logging/rails_ext/action_controller/metal/instrumentation.rb
|
|
399
399
|
- lib/govuk_app_config/govuk_open_telemetry.rb
|
|
400
400
|
- lib/govuk_app_config/govuk_prometheus_exporter.rb
|
|
401
|
-
- lib/govuk_app_config/govuk_proxy/static_proxy.rb
|
|
402
401
|
- lib/govuk_app_config/govuk_puma.rb
|
|
403
402
|
- lib/govuk_app_config/govuk_statsd.rb
|
|
404
403
|
- lib/govuk_app_config/govuk_timezone.rb
|
|
@@ -422,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
422
421
|
- !ruby/object:Gem::Version
|
|
423
422
|
version: '0'
|
|
424
423
|
requirements: []
|
|
425
|
-
rubygems_version: 4.0.
|
|
424
|
+
rubygems_version: 4.0.3
|
|
426
425
|
specification_version: 4
|
|
427
426
|
summary: Base configuration for GOV.UK applications
|
|
428
427
|
test_files: []
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
require "rack-proxy"
|
|
2
|
-
|
|
3
|
-
module GovukProxy
|
|
4
|
-
class StaticProxy < Rack::Proxy
|
|
5
|
-
def perform_request(env)
|
|
6
|
-
request = Rack::Request.new(env)
|
|
7
|
-
|
|
8
|
-
# use rack proxy to forward any requests for /assets/static/*
|
|
9
|
-
# this regex needs to match the path set for `Rails.application.config.assets.prefix` in Static
|
|
10
|
-
# https://github.com/alphagov/static/blob/main/config/initializers/assets.rb
|
|
11
|
-
if request.path =~ %r{^/assets/static/}
|
|
12
|
-
env["HTTP_HOST"] = @backend.host
|
|
13
|
-
super(env)
|
|
14
|
-
else
|
|
15
|
-
@app.call(env)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|