riemann-dash/example/config.rb

28 lines
891 B
Ruby
Raw Normal View History

2014-09-17 08:02:46 +00:00
# Example configuration file for riemann-dash.
# Serve HTTP traffic on this port
2016-06-23 15:19:40 +00:00
set :port, 4567
2012-02-18 23:22:24 +00:00
2014-09-17 08:02:46 +00:00
# Answer queries sent to this IP address
set :bind, "0.0.0.0"
riemann_base = '.'
riemann_src = "#{riemann_base}/lib/riemann/dash"
2012-02-18 23:22:24 +00:00
# Add custom controllers in controller/
2013-03-11 16:05:02 +00:00
config.store[:controllers] = ["#{riemann_src}/controller"]
2012-02-18 23:22:24 +00:00
# Use the local view directory instead of the default
2013-03-11 16:05:02 +00:00
config.store[:views] = "#{riemann_src}/views"
# Specify a custom path to your workspace config.json
2013-03-11 16:05:02 +00:00
config.store[:ws_config] = "#{riemann_base}/config/config.json"
# Serve static files from this directory
2013-03-11 16:05:02 +00:00
config.store[:public] = "#{riemann_src}/public"
2014-06-04 22:09:18 +00:00
# Save workspace configuration to Amazon S3 (you'll need to have the "fog"
# gem installed)
# config.store[:ws_config] = 's3://my-bucket/config.json'
# config.store[:s3_config] = {:aws_access_key_id => "123ABC", :aws_secret_access_key => "789XYZ"}