about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-17 10:30:34 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-05-17 10:30:34 +0200
commit69737b703ab1d9b9e49315f12c3aca8cf6df70ac (patch)
treefd533bcafe02475fbc19681cc764d75fe6f16e12 /config/initializers
parent678e07c54485c6cc61b2ac18aa5ceaa290a6fcbd (diff)
parent4c7efdba402b6b8ee0363b6f1dc2c202303d7623 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `README.md`: our READMEs are entirely different and
  upstream's has been updated. Kept our README.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/1_hosts.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_hosts.rb b/config/initializers/1_hosts.rb
index eaf6e0181..f470fddb3 100644
--- a/config/initializers/1_hosts.rb
+++ b/config/initializers/1_hosts.rb
@@ -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