From d4457b6f48c171242af8fac2552b1505a8e91892 Mon Sep 17 00:00:00 2001 From: chriswue Date: Mon, 24 Jul 2023 11:34:42 +1200 Subject: [PATCH] Correct nginx proxy Host header The Host header should be the target host not the source host --- docker/build/internal_files/clearml.conf.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/build/internal_files/clearml.conf.template b/docker/build/internal_files/clearml.conf.template index 202627e..2eecdc4 100644 --- a/docker/build/internal_files/clearml.conf.template +++ b/docker/build/internal_files/clearml.conf.template @@ -38,7 +38,7 @@ server { location /api { proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $host; + proxy_set_header Host $proxy_host; proxy_pass ${NGINX_APISERVER_ADDR}; rewrite /api/(.*) /$1 break; } @@ -57,4 +57,4 @@ server { error_page 500 502 503 504 /50x.html; location = /50x.html { } -} \ No newline at end of file +}