From 7f28f3a36612eb9e0394a94fd943f2ba0402fc53 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 7 May 2025 14:07:11 +0200 Subject: [PATCH 1/2] 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; } } From 6797f6597114bf9cc5e49c4f78ed3243816332ba Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 7 May 2025 14:13:04 +0200 Subject: [PATCH 2/2] influxdb: fix reverse proxy Like grafana. Also set some buffering options. --- roles/influxdb/templates/nginx.conf.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/influxdb/templates/nginx.conf.j2 b/roles/influxdb/templates/nginx.conf.j2 index c88aa30..c1a483f 100644 --- a/roles/influxdb/templates/nginx.conf.j2 +++ b/roles/influxdb/templates/nginx.conf.j2 @@ -6,7 +6,11 @@ server { ssl_certificate /etc/letsencrypt/live/{{ dns_name }}/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem; + client_body_buffer_size 10M; + location / { - proxy_pass http://localhost:8087; + proxy_pass http://127.0.0.1:8087; + + proxy_max_temp_file_size 0; } }