Merge pull request #1017 from reasonerjt/dev

set secure flag for cookie
This commit is contained in:
Daniel Jiang 2016-11-07 11:01:40 +08:00 committed by GitHub
commit 5a0c203557

View File

@ -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;
}