Merge pull request #6366 from opf/feature/accessible_health_checks

make /health_checks accessible via HTTP
pull/6316/merge
Markus Kahl 6 years ago committed by GitHub
commit e632174d89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      config/environments/production.rb

@ -80,7 +80,7 @@ OpenProject::Application.configure do
# Respect the relative URL
relative_url = Regexp.escape(OpenProject::Configuration['rails_relative_url_root'])
# When we match SYS controller API, allow non-https access
request.path =~ /#{relative_url}\/sys\//
request.path =~ /#{relative_url}\/sys\// || request.path =~ /#{relative_url}\/health_checks/
end
},
secure_cookies: true

Loading…
Cancel
Save