Sha256: 2dcd3fe2b3938c54eda5760ce9d3f1bf1106336e253c4748b716fcf9a14ca350
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
# Use this hook to configure health rails. HealthRails.setup do |config| # Configure who can access your health check url. # You can configure as much users as you want, # or pass another backend for authentification. # If you don't want to have authentification, # remove the next line. This is not recommended! config.authentication = { "admin" => <%= SecureRandom.hex(16).inspect %> } # Configure which health checks should be processed. config.health_checks = [ 'ActiveRecord connection' ] # Custom checks # # check "Fail" do # raise HealthCheckFailure, "It failed!" # end # # check "Pass" do # if false # raise HealthCheckFailure, "It failed, OMG!" # end # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
health_rails-0.0.2 | lib/generators/templates/health_rails.rb |