mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
add 400 response
This commit is contained in:
@@ -188,6 +188,9 @@ Rails.application.configure do
|
||||
base = OpenProject::Configuration["rails_relative_url_root"]
|
||||
request.path.start_with?("#{base}/health_check") ||
|
||||
request.path.start_with?("#{base}/sys")
|
||||
end,
|
||||
response_app: -> env do
|
||||
[400, { "Content-Type" => "text/plain" }, ["Invalid host_name configuration"]]
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user