about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2019-09-07 09:47:51 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-09-07 02:47:51 +0200
commitd7268befa853ac4a99f9d066c38330d4fc0bfc31 (patch)
tree7ebc0784a706059880d471c3ae8664cf9beaa7dd /app/controllers
parente445a8af64908b2bdb721bec74c113e8258a129b (diff)
Add healthcheck endpoint for web (#11770)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 5b343a276..bd3d13774 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -41,7 +41,7 @@ class ApplicationController < ActionController::Base
   private
 
   def https_enabled?
-    Rails.env.production?
+    Rails.env.production? && !request.path.start_with?('/health')
   end
 
   def authorized_fetch_mode?