From 26a36701f59e7fe3a873b16e78dacd7cc6073388 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 2 Sep 2022 14:55:11 +0200 Subject: [PATCH] grafana: fix vhost config (origin not allowed) --- roles/grafana/templates/vhost.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/grafana/templates/vhost.j2 b/roles/grafana/templates/vhost.j2 index 2a11c10..84c9c0c 100644 --- a/roles/grafana/templates/vhost.j2 +++ b/roles/grafana/templates/vhost.j2 @@ -25,7 +25,8 @@ server { location / { client_max_body_size 1024M; - proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; proxy_pass http://localhost:3000; } }