Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit f09322f

Browse files
authored
Disable host check on healthcheck path (mastodon#16243)
1 parent 6528f81 commit f09322f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/initializers/1_hosts.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
config.hosts << host if host.present?
3232
config.hosts << web_host if web_host.present?
3333
config.hosts.concat(alternate_domains) if alternate_domains.present?
34+
config.hosts_authorization = { exclude: ->(request) { request.path == '/health' } }
3435
end
3536
end

0 commit comments

Comments
 (0)