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
committermultiple creatures <dev@multiple-creature.party>2020-02-21 00:22:54 -0600
commitb9ed21b8f443d12ac3f8a62e536983e9cbf31d78 (patch)
tree1abcf19f4457d8ad300d2c770f904ea4811a2c77 /app/controllers
parent45e843d487cc3f8e0f352485caaa7a2abfae9832 (diff)
port tootsuite#11770 to monsterfork: Add healthcheck endpoint for web
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 7d1c532e5..78f866650 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -40,7 +40,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?