Skip to content

Commit

Permalink
exclude checks
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Jan 8, 2025
1 parent c56877a commit 286ab26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/health_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
config.standard_checks += ENV.fetch("HEALTHCHECK_ADDITIONAL_CHECKS", nil).split(" ")
end
end

if ENV.fetch("HEALTHCHECK_EXCLUDE_CHECKS", nil)
HealthCheck.setup do |config|
config.standard_checks -= ENV.fetch("HEALTHCHECK_EXCLUDE_CHECKS", nil).split(" ")
end
end

0 comments on commit 286ab26

Please sign in to comment.