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 5454 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
5555 config . force_ssl = true
5656
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+ #
5961 # 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" } } }
6163
6264 # Log to STDOUT by default
6365 config . logger = ActiveSupport ::Logger . new ( STDOUT )
You can’t perform that action at this time.
0 commit comments