From 5b1ac50af8a7cefedc59e71dad8aa642774a2a3b Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sun, 2 Oct 2022 14:22:17 -0400 Subject: [PATCH] Remove headers that conflict with using traefik to terminate TLS Eg. https://github.com/distribution/distribution/issues/970 --- nginx.conf | 3 --- 1 file changed, 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index 87771f3..9909f92 100644 --- a/nginx.conf +++ b/nginx.conf @@ -36,9 +36,6 @@ http { proxy_pass http://docker-registry; proxy_set_header Host $http_host; # required for docker client's sake - proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 900; } }