health_monitor_lb 1.1.0 → 1.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1196da1abb0b84d346364f3ca8a8fdc73b093bed1fb24c5aad9e5fdec177715f
|
4
|
+
data.tar.gz: f6ec9faa96f1a7a3674c4974b6accbd4387ff61df37ae9e35e3d7b5c3fb80dad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6933fe8a56286b3255968960b0df5e267ccf4a4021877a4bb1595e8c745142caf229b882235080c37a0f6ecb8c1af229fa02f78d858fbc37cd7397cccb4eec
|
7
|
+
data.tar.gz: 74d153584394cb07ad83d6fb2dfc0295d974f30ce55d44e21633641af25974678d2646a82b8e7482bdc5bd95aeddcde087508402272baaef44aea3b26b053137
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module HealthMonitorLb
|
2
2
|
class HealthController < ApplicationController
|
3
|
+
before_action :disable_ssl, only: disable_ssl_actions
|
4
|
+
|
3
5
|
def index
|
4
6
|
status = HealthCheckService.new.call
|
5
7
|
|
@@ -9,5 +11,17 @@ module HealthMonitorLb
|
|
9
11
|
|
10
12
|
render json: status, status: :ok
|
11
13
|
end
|
14
|
+
|
15
|
+
def disable_ssl
|
16
|
+
# This is a workaround for the issue with SSL termination in AWS ELB
|
17
|
+
# where the health check URL is not accessible over HTTP.
|
18
|
+
redirect_to request.url.gsub(/https/i, 'http') if request.ssl?
|
19
|
+
end
|
20
|
+
|
21
|
+
def disable_ssl_actions
|
22
|
+
actions = []
|
23
|
+
actions << :index unless ENV['ENABLE_HEALTH_CHECK_SSL']
|
24
|
+
actions
|
25
|
+
end
|
12
26
|
end
|
13
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health_monitor_lb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan Hecht
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
- Kevin Foster
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|