Skip to content

Commit

Permalink
Exclude /health from host verification
Browse files Browse the repository at this point in the history
This will be necessary for deploys to succeed.
  • Loading branch information
tdooner committed Aug 23, 2024
1 parent a9142d4 commit 77569b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77569b7

Please sign in to comment.