File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app-rails/config/environments Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 54
54
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
55
55
config . force_ssl = true
56
56
57
- # Exclude healthcheck endpoint from force SSL since healthchecks should not go through
58
- # the reverse proxy.
57
+ # Exclude healthcheck endpoint from force SSL since healthcheck requests can
58
+ # come from internal network sources (e.g., a load balancer) that do not go
59
+ # through the service's SSL-terminating reverse proxy.
60
+ #
59
61
# See https://api.rubyonrails.org/classes/ActionDispatch/SSL.html
60
- config . ssl_options = { redirect : { exclude : -> ( request ) { /health/ . match? ( request . path ) } } }
62
+ config . ssl_options = { redirect : { exclude : -> ( request ) { request . get? and request . path == "/health" } } }
61
63
62
64
# Log to STDOUT by default
63
65
config . logger = ActiveSupport ::Logger . new ( STDOUT )
You can’t perform that action at this time.
0 commit comments