From 0a9f3b827d4e41038a7621199ee790812d4758c3 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 13 Dec 2023 20:50:43 +0100 Subject: Configure Grafana to be run behind a reverse proxy --- tw/services/web.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tw/services/web.scm') diff --git a/tw/services/web.scm b/tw/services/web.scm index 0372b906..835aebd3 100644 --- a/tw/services/web.scm +++ b/tw/services/web.scm @@ -43,7 +43,9 @@ speaks. Set to @code{\"https\"} if you want to proxy HTTPS-to-HTTPS.")) (list (nginx-location-configuration (uri "/") (body `(("proxy_pass http://" ,destination-ip ":" - ,(number->string destination-port) ";"))))))))) + ,(number->string destination-port) ";") + ;; For Grafana: https://grafana.com/tutorials/run-grafana-behind-a-proxy/#configure-nginx + "proxy_set_header Host $http_host;")))))))) (define (reverse-proxy-certificates configs) (map reverse-proxy-certificate configs)) -- cgit v1.2.3