From da68d078b0a053f88b61d3d9e93b105dd052bc29 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 27 Jan 2026 13:06:41 +0100 Subject: [PATCH] Fix issue where upstream only got the first query param --- nginx.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 66d817a..77fd987 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,7 +27,12 @@ http { rewrite ^ /index.html last; } - proxy_pass $arg_url; + # Forward query string to upstream (? if url has no query, & if it already has ?) + set $url_sep "?"; + if ($arg_url ~ \?) { + set $url_sep "&"; + } + proxy_pass $arg_url$url_sep$args; proxy_http_version 1.1; proxy_set_header Host $proxy_host; proxy_ssl_server_name on;