fix(haproxy): KEYCLOAK_LOCALE cookie replaced path

darta 2022-01-31 00:37:41 +00:00
parent 258a31d0e4
commit cbb6e6ebb5
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,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="${DOMAIN}";\2
http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure;HttpOnly
server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none
backend be_admin

View File

@ -103,7 +103,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="${DOMAIN}";\2
http-response replace-header Set-Cookie (KEYCLOAK_LOCALE=[^;]*);(.*) \1;Domain="${DOMAIN}";Version=1;Path=/;Secure;HttpOnly
server keycloak isard-sso-keycloak:8080 check port 8080 inter 5s rise 2 fall 10 resolvers mydns init-addr none
backend be_admin