aboutsummaryrefslogtreecommitdiff
path: root/tw/services/web.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/services/web.scm')
-rw-r--r--tw/services/web.scm4
1 files changed, 3 insertions, 1 deletions
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))