From a950f6ca5013ee4a353f0b388a5af98283424754 Mon Sep 17 00:00:00 2001 From: Seth Grover Date: Thu, 16 Jan 2025 13:54:10 -0700 Subject: [PATCH] fix issue with nginx proxy --- nginx/nginx.conf | 4 ++-- nginx/nginx_readonly.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 7b66f8c1c..b261dd25f 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -202,8 +202,8 @@ http { rewrite ^/(dashboards/app/)?hh-extracted-files/([a-zA-Z0-9-\.]+)(.*)$ $filereq break; proxy_pass https://$upstream; proxy_ssl_verify off; - proxy_set_header Host $1; - proxy_set_header X-Malcolm-Forward "/hh-extracted-files/$1"; + proxy_set_header Host $2; + proxy_set_header X-Malcolm-Forward "/hh-extracted-files/$2"; } # Arkime -> Dashboards shortcut diff --git a/nginx/nginx_readonly.conf b/nginx/nginx_readonly.conf index 3b490ac73..081c97780 100644 --- a/nginx/nginx_readonly.conf +++ b/nginx/nginx_readonly.conf @@ -163,8 +163,8 @@ http { rewrite ^/(dashboards/app/)?hh-extracted-files/([a-zA-Z0-9-\.]+)(.*)$ $filereq break; proxy_pass https://$upstream; proxy_ssl_verify off; - proxy_set_header Host $1; - proxy_set_header X-Malcolm-Forward "/hh-extracted-files/$1"; + proxy_set_header Host $2; + proxy_set_header X-Malcolm-Forward "/hh-extracted-files/$2"; } # Dashboards -> Arkime shortcut