diff --git a/config/initializers/health_checks.rb b/config/initializers/health_checks.rb index 1b19b74104..c7b437e507 100644 --- a/config/initializers/health_checks.rb +++ b/config/initializers/health_checks.rb @@ -17,9 +17,6 @@ class DelayedJobNeverRanCheck < OkComputer::Check end end -# Mount at /health_checks -OkComputer.mount_at = 'health_checks' - # Register delayed_job backed up test dj_max = OpenProject::Configuration.health_checks_jobs_queue_count_threshold OkComputer::Registry.register "delayed_jobs_backed_up", diff --git a/config/routes.rb b/config/routes.rb index c0b9155d54..a2e148456b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -31,6 +31,11 @@ OpenProject::Application.routes.draw do root to: 'homescreen#index', as: 'home' rails_relative_url_root = OpenProject::Configuration['rails_relative_url_root'] || '' + # Route for health_checks + # Override the default `all` checks route to return the full check + get '/health_checks/all' => redirect("#{rails_relative_url_root}/health_checks/full") + mount OkComputer::Engine, at: "/health_checks" + # Redirect deprecated issue links to new work packages uris get '/issues(/)' => redirect("#{rails_relative_url_root}/work_packages") # The URI.escape doesn't escape / unless you ask it to.