[1759] Ingress affinity session cookie with Secure flag for HTTPS
Signed-off-by: Fabian Topfstedt <topfstedt@schneevonmorgen.com>
This commit is contained in:
parent
184eef84d5
commit
1e31767b51
2 changed files with 3 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ local function set_cookie(self, value)
|
|||
path = cookie_path,
|
||||
domain = ngx.var.host,
|
||||
httponly = true,
|
||||
secure = ngx.var.https == "on",
|
||||
}
|
||||
|
||||
if self.cookie_expires and self.cookie_expires ~= "" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue