From ea428a21097566ff7d685c1fe02b1631bdac89ad Mon Sep 17 00:00:00 2001 From: darta Date: Mon, 24 Jan 2022 07:37:23 +0000 Subject: [PATCH] feat(haproxy): replace KEYCLOAK_LOCALE cookie domain to root --- docker/haproxy/haproxy-behind.conf | 1 + docker/haproxy/haproxy.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/haproxy/haproxy-behind.conf b/docker/haproxy/haproxy-behind.conf index 2f63895..8a25312 100644 --- a/docker/haproxy/haproxy-behind.conf +++ b/docker/haproxy/haproxy-behind.conf @@ -90,6 +90,7 @@ backend be_sso acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host http-request add-header X-Forwarded-Proto https unless existing-x-forwarded-proto + http-response replace-value Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;domain=digitaldemocratic.net;\2 server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none backend be_admin diff --git a/docker/haproxy/haproxy.conf b/docker/haproxy/haproxy.conf index 17bba98..e5d7a17 100644 --- a/docker/haproxy/haproxy.conf +++ b/docker/haproxy/haproxy.conf @@ -94,6 +94,7 @@ backend be_sso acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host http-request add-header X-Forwarded-Proto https unless existing-x-forwarded-proto + http-response replace-value Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;domain=digitaldemocratic.net;\2 server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none backend be_admin