mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-02 10:41:59 +01:00
set secure flag for cookie
This commit is contained in:
parent
ddd03c55d3
commit
b92b1036bf
@ -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