From 7f28f3a36612eb9e0394a94fd943f2ba0402fc53 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 7 May 2025 14:07:11 +0200 Subject: [PATCH] grafana: fix reverse proxy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can’t get it to bind to IPv6 so use v4 explicitly. --- roles/grafana/templates/nginx.conf.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/grafana/templates/nginx.conf.j2 b/roles/grafana/templates/nginx.conf.j2 index 63ac1e1..05a7d13 100644 --- a/roles/grafana/templates/nginx.conf.j2 +++ b/roles/grafana/templates/nginx.conf.j2 @@ -7,7 +7,9 @@ server { ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem; location / { - proxy_pass http://localhost:3000; + proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; + + proxy_max_temp_file_size 0; } }