From 6e7bff2d18966f90ad4f0fd86cebfcf6b20483e7 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 15 Dec 2023 15:00:15 +1100 Subject: [PATCH] fix: Try to set a dynamic upstream proxyhost --- nginx.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index 60d7898..3b1010f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,10 +21,8 @@ server { server_name _; location / { - # Set the upstream based on the host header - proxy_set_header Host $upstream; - proxy_pass https://loadbalancer; + proxy_pass https://$upstream; proxy_ssl_verify off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;