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