From 77569b728455a37671de44332f1ab103f9b26f1d Mon Sep 17 00:00:00 2001 From: Tom Dooner Date: Fri, 23 Aug 2024 12:34:06 -0700 Subject: [PATCH] Exclude /health from host verification This will be necessary for deploys to succeed. --- app/config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/config/environments/production.rb b/app/config/environments/production.rb index 91419303..717eec70 100644 --- a/app/config/environments/production.rb +++ b/app/config/environments/production.rb @@ -39,6 +39,9 @@ routes.default_url_options[:host] = ENV["DOMAIN_NAME"] config.hosts << ENV["DOMAIN_NAME"] + config.host_authorization = { + exclude: ->(request) { %r{^/health}.match?(request.path) } + } # Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache