mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
Merge pull request #1017 from reasonerjt/dev
set secure flag for cookie
This commit is contained in:
commit
5a0c203557
@ -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.
|
# 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;
|
||||||
|
|
||||||
|
# Add Secure flag when serving HTTPS
|
||||||
|
proxy_cookie_path / "/; secure";
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user