From 7910afc2b6dc77b95a684b676bb5c58296696b02 Mon Sep 17 00:00:00 2001 From: Venkata Challa Date: Wed, 31 Jan 2024 18:16:56 +0000 Subject: [PATCH] Pod healthcheck failures fixed --- config/environments/production.rb | 2 ++ 1 file changed, 2 insertions(+) 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).