]> git.openstreetmap.org Git - chef.git/commitdiff
Proxy websocket requests for prometheus
authorTom Hughes <tom@compton.nu>
Mon, 24 Apr 2023 08:46:20 +0000 (08:46 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 24 Apr 2023 08:46:20 +0000 (08:46 +0000)
cookbooks/prometheus/recipes/server.rb
cookbooks/prometheus/templates/default/apache.erb

index 8fb8621c717ceb61dc4629b9c6f86674fa87f039..1c4f8e2d20f8a9500e91a8bc0ae04609f88d5355 100644 (file)
@@ -391,6 +391,7 @@ end
 
 apache_module "alias"
 apache_module "proxy_http"
+apache_module "proxy_wstunnel"
 
 ssl_certificate "prometheus.openstreetmap.org" do
   domains ["prometheus.openstreetmap.org", "prometheus.osm.org"]
index 629e409e26e38c6ff3fc0f8689735b9fc0143d4b..1dead4474328dd5ffcdf57e03c8af18ae9327aa4 100644 (file)
@@ -27,6 +27,7 @@
        Redirect 403 /alertmanager/api
        ProxyPass /alertmanager http://localhost:9093/alertmanager
        ProxyPass /karma http://localhost:8081/karma
+       ProxyPass /api/live/ws ws://localhost:3000/api/live/ws
        ProxyPass / http://localhost:3000/
        ProxyPreserveHost on