set secure flag for cookie

This commit is contained in:
Tan Jiang 2016-11-05 00:08:37 +08:00
parent ddd03c55d3
commit b92b1036bf

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