带有https的loadbalancer后面的Keycloak Docker失败 [英] Keycloak Docker behind loadbalancer with https fails

查看:102
本文介绍了带有https的loadbalancer后面的Keycloak Docker失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在A10负载均衡器后面使用集群式密钥斗篷docker.我正在尝试从客户端应用程序通过https访问所有请求.我的问题是,当我们尝试使用HTTP访问keycloak时,相同的设置正在工作,但是当我们尝试使用HTTPS访问它的同时,它却无法正常工作.谁能帮我解决这个问题?请让我知道问题出在密钥斗篷级别还是A10负载均衡器级别.

I am trying to use clustered keycloak docker behind the A10 load balancer. I am trying access all the request by https from the client application. My issue is that the same setup is working when we try to access keycloak has HTTP but at the same time when we try to access this has HTTPS it is not working. Can anyone help me to solve this issue? Please let me know whether the issue is in the keycloak level or A10 load balancer level.

推荐答案

我不知道A10,但是您必须确保它设置了请求标头 X-Forwarded-For X-Forwarded-Proto . 然后,您必须配置Keycloak(Wildfly,Undertow)与SSL终止反向代理(也称为负载平衡器)一起使用. 请参见 http://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy 进行详细说明.

I don't know A10, but you have to ensure that it sets the request headers X-Forwarded-For and X-Forwarded-Proto. Then you have to configure Keycloak (Wildfly, Undertow) to work together with the SSL terminating reverse proxy (aka load balancer). See http://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy for a detailed description.

这篇关于带有https的loadbalancer后面的Keycloak Docker失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆