about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2021-05-17 02:48:59 +0900
committerGitHub <noreply@github.com>2021-05-16 19:48:59 +0200
commitf09322f9cca9e05093af4ae4051d27b8c9244a0f (patch)
tree73eca87c9ce5e941bc838be2ed9109ed427ae819 /config
parent6528f8162eea50e1ce81921df85abd652fe54a95 (diff)
Disable host check on healthcheck path (#16243)
Diffstat (limited to 'config')
-rw-r--r--config/initializers/1_hosts.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_hosts.rb b/config/initializers/1_hosts.rb
index eaf6e0181..f470fddb3 100644
--- a/config/initializers/1_hosts.rb
+++ b/config/initializers/1_hosts.rb
@@ -31,5 +31,6 @@ Rails.application.configure do
     config.hosts << host if host.present?
     config.hosts << web_host if web_host.present?
     config.hosts.concat(alternate_domains) if alternate_domains.present?
+    config.hosts_authorization = { exclude: ->(request) { request.path == '/health' } }
   end
 end