diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-07-03 18:09:34 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-07-05 01:46:11 +0300 |
commit | 18521584bd6cfc8de9511722696e87aef59795c5 (patch) | |
tree | fa5b83fca15ff3d6f7a70fd9b87bc31ad575a08a /config/initializers | |
parent | 5af1fcd6f329858d757bab0d67cb50af6c820160 (diff) |
Remove the need to use health check token
in favor of whitelist that will be used to
control the access to monitoring resources
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/1_settings.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index cb11d2c34f4..0c0dcd8413e 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -495,6 +495,13 @@ Settings.webpack.dev_server['host'] ||= 'localhost' Settings.webpack.dev_server['port'] ||= 3808 # +# Monitoring settings +# +Settings['monitoring'] ||= Settingslogic.new({}) +Settings.monitoring['ip_whitelist'] ||= %w{127.0.0.1/8} +Settings.monitoring.ip_whitelist.map!(&IPAddr.method(:new)) + +# # Prometheus metrics settings # Settings['prometheus'] ||= Settingslogic.new({}) |