[1759] Ingress affinity session cookie with Secure flag for HTTPS

Signed-off-by: Fabian Topfstedt <topfstedt@schneevonmorgen.com>
This commit is contained in:
Fabian Topfstedt 2018-12-04 10:51:52 +01:00
parent 184eef84d5
commit 1e31767b51
2 changed files with 3 additions and 2 deletions

View file

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