From f09322f9cca9e05093af4ae4051d27b8c9244a0f Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Mon, 17 May 2021 02:48:59 +0900 Subject: Disable host check on healthcheck path (#16243) --- config/initializers/1_hosts.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config') 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 -- cgit