From a59423780e48ce348a32c1b2a8f978428d62b5e7 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Mon, 25 Nov 2024 19:36:16 +0100 Subject: [PATCH] deploy: Fix metrics in nginx --- deploy/ansible/playbooks/templates/nginx.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy/ansible/playbooks/templates/nginx.conf.j2 b/deploy/ansible/playbooks/templates/nginx.conf.j2 index 3533f37..1bde29a 100644 --- a/deploy/ansible/playbooks/templates/nginx.conf.j2 +++ b/deploy/ansible/playbooks/templates/nginx.conf.j2 @@ -75,6 +75,14 @@ server { allow 127.0.0.1; allow ::1; deny all; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_redirect off; + proxy_buffering off; + proxy_pass http://c3lf-sys3; } listen 443 ssl http2; # managed by Certbot