forked from External/greenlight
Fix health checks (#663)
This commit is contained in:
parent
81aea827ba
commit
0a6bce1384
2
Gemfile
2
Gemfile
|
@ -35,7 +35,7 @@ gem 'turbolinks', '~> 5'
|
||||||
gem 'jbuilder', '~> 2.5'
|
gem 'jbuilder', '~> 2.5'
|
||||||
|
|
||||||
# Use Redis adapter to run Action Cable in production
|
# Use Redis adapter to run Action Cable in production
|
||||||
gem 'redis', '~> 3.0'
|
# gem 'redis', '~> 3.0'
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
gem 'bcrypt', '~> 3.1.7'
|
gem 'bcrypt', '~> 3.1.7'
|
||||||
|
|
|
@ -248,7 +248,6 @@ GEM
|
||||||
recaptcha (5.0.0)
|
recaptcha (5.0.0)
|
||||||
json
|
json
|
||||||
redcarpet (3.4.0)
|
redcarpet (3.4.0)
|
||||||
redis (3.3.5)
|
|
||||||
remote_syslog_logger (1.0.4)
|
remote_syslog_logger (1.0.4)
|
||||||
syslog_protocol
|
syslog_protocol
|
||||||
rolify (5.2.0)
|
rolify (5.2.0)
|
||||||
|
@ -373,7 +372,6 @@ DEPENDENCIES
|
||||||
random_password
|
random_password
|
||||||
recaptcha
|
recaptcha
|
||||||
redcarpet
|
redcarpet
|
||||||
redis (~> 3.0)
|
|
||||||
remote_syslog_logger
|
remote_syslog_logger
|
||||||
rolify
|
rolify
|
||||||
rspec-rails (~> 3.7)
|
rspec-rails (~> 3.7)
|
||||||
|
|
|
@ -23,17 +23,11 @@ HealthCheck.setup do |config|
|
||||||
|
|
||||||
config.http_status_for_error_object = 500
|
config.http_status_for_error_object = 500
|
||||||
|
|
||||||
# bucket names to test connectivity - required only if s3 check used, access permissions can be mixed
|
|
||||||
config.buckets = { 'bucket_name' => [:R, :W, :D] }
|
|
||||||
|
|
||||||
# You can customize which checks happen on a standard health check, eg to set an explicit list use:
|
# You can customize which checks happen on a standard health check, eg to set an explicit list use:
|
||||||
config.standard_checks = %w(database migrations custom)
|
config.standard_checks = %w(database migrations emailconf)
|
||||||
|
|
||||||
# Or to exclude one check:
|
|
||||||
config.standard_checks -= %w(emailconf)
|
|
||||||
|
|
||||||
# You can set what tests are run with the 'full' or 'all' parameter
|
# You can set what tests are run with the 'full' or 'all' parameter
|
||||||
config.full_checks = %w(database migrations custom email cache redis resque-redis sidekiq-redis s3)
|
config.full_checks = %w(database migrations email cache)
|
||||||
|
|
||||||
# max-age of response in seconds
|
# max-age of response in seconds
|
||||||
# cache-control is public when max_age > 1 and basic_auth_username is not set
|
# cache-control is public when max_age > 1 and basic_auth_username is not set
|
||||||
|
@ -43,7 +37,4 @@ HealthCheck.setup do |config|
|
||||||
|
|
||||||
# http status code used when the ip is not allowed for the request
|
# http status code used when the ip is not allowed for the request
|
||||||
config.http_status_for_ip_whitelist_error = 403
|
config.http_status_for_ip_whitelist_error = 403
|
||||||
|
|
||||||
# When redis url is non-standard
|
|
||||||
config.redis_url = 'redis_url'
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue