From 098d7d5765e3d364be099c801aaa1246c9812871 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Fri, 17 Mar 2017 19:44:54 +0800 Subject: [PATCH] fix issue in location.conf --- make/common/templates/nginx/notary.location.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/make/common/templates/nginx/notary.location.conf b/make/common/templates/nginx/notary.location.conf index 66d5fa304..cf280befa 100644 --- a/make/common/templates/nginx/notary.location.conf +++ b/make/common/templates/nginx/notary.location.conf @@ -1,11 +1,11 @@ location /notary/v2/ { proxy_pass http://notary-server/v2/; - proxy_set_header Host $$http_host; - proxy_set_header X-Real-IP $$remote_addr; - proxy_set_header X-Forwarded-For $$proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. - proxy_set_header X-Forwarded-Proto $$scheme; + proxy_set_header X-Forwarded-Proto $scheme; proxy_buffering off; proxy_request_buffering off;