Browse Source

Disable host check on healthcheck path (#16243)

closed-social-v3
Jeong Arm 2 years ago
committed by GitHub
parent
commit
f09322f9cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      config/initializers/1_hosts.rb

+ 1
- 0
config/initializers/1_hosts.rb View File

@ -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

Loading…
Cancel
Save