Sha256: c39991dd94dac5fc39635f5d7fc2fc4e152bedaeee4e5287c3d97f3ebe90a984
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
WebAdminApp.use Rack::ReverseProxy do reverse_proxy /^\/pushgateway\/?(.*)$/, get_config.prometheus_pushgateway_url reverse_proxy_options preserve_host: true end WebAdminApp.use Rack::ReverseProxy do reverse_proxy /^\/prometheus\/?(.*)$/, get_config.prometheus_url reverse_proxy_options preserve_host: true end WebAdminApp.get '/proxy/links' do get_menu 5 config = get_config if config.webadmin_proxy == true then @proxy = true @pushgateway_url = "http://#{config.webadmin_ip}:#{config.webadmin_port}/pushgateway" @prometheus_url = "http://#{config.webadmin_ip}:#{config.webadmin_port}/prometheus" else @proxy = false @pushgateway_url = "#{config.prometheus_pushgateway_url}" @prometheus_url = "#{config.prometheus_url}" end slim :proxy, :format => :html end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prometheus-splash-0.7.0 | lib/splash/webadmin/portal/controllers/proxy.rb |