diff --git a/config/environments/production.rb b/config/environments/production.rb index 3aee3364..645a354e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -41,6 +41,8 @@ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true + # Exclude kubernetes healthcheck because it is http only. + config.ssl_options = { redirect: { exclude: -> (request) { /healthcheck/.match?(request.path) } } } # Include generic and useful information about system operation, but avoid logging too much # information to avoid inadvertent exposure of personally identifiable information (PII).