add 400 response

This commit is contained in:
Oliver Günther
2024-06-25 09:37:14 +02:00
parent 572f202530
commit 2948d358ac
+3
View File
@@ -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