From 95afa201e30aa4a23251652fca23543303286448 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Mon, 30 Sep 2024 10:53:18 +0200 Subject: [PATCH] Fixed host forwarding for subdomain reverse proxy Signed-off-by: Tuan-Dat Tran --- roles/loadbalancer/templates/nginx.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/loadbalancer/templates/nginx.conf.j2 b/roles/loadbalancer/templates/nginx.conf.j2 index a7c554a..14b4177 100644 --- a/roles/loadbalancer/templates/nginx.conf.j2 +++ b/roles/loadbalancer/templates/nginx.conf.j2 @@ -26,6 +26,7 @@ http { server { location / { proxy_pass http://k3s_servers_http; + proxy_set_header Host $http_host; } } }