From b92b1036bf08981e89b314cb27ff770f0fd8a54e Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Sat, 5 Nov 2016 00:08:37 +0800 Subject: [PATCH] set secure flag for cookie --- make/common/templates/nginx/nginx.https.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make/common/templates/nginx/nginx.https.conf b/make/common/templates/nginx/nginx.https.conf index f862fcc20..c90e951c8 100644 --- a/make/common/templates/nginx/nginx.https.conf +++ b/make/common/templates/nginx/nginx.https.conf @@ -51,6 +51,9 @@ http { # 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; + # Add Secure flag when serving HTTPS + proxy_cookie_path / "/; secure"; + proxy_buffering off; proxy_request_buffering off; }