mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Disable host check on healthcheck path (#16243)
This commit is contained in:
parent
6528f8162e
commit
f09322f9cc
@ -31,5 +31,6 @@ Rails.application.configure do
|
|||||||
config.hosts << host if host.present?
|
config.hosts << host if host.present?
|
||||||
config.hosts << web_host if web_host.present?
|
config.hosts << web_host if web_host.present?
|
||||||
config.hosts.concat(alternate_domains) if alternate_domains.present?
|
config.hosts.concat(alternate_domains) if alternate_domains.present?
|
||||||
|
config.hosts_authorization = { exclude: ->(request) { request.path == '/health' } }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user