小编Fab*_*chi的帖子

HAProxy + Keycloak 重定向问题

我有一个 HAProxy 在两台以独立模式运行 Keycloak 的机器前面充当负载均衡器。

版本

  • HAProxy 版本 1.6.3,2015/12/25 发布
  • Keycloak版本2.4.0.Final

HAProxy 配置

global
  user haproxy
  group haproxy
  log /dev/log local0
  log-tag WARDEN
  chroot /var/lib/haproxy
  daemon
  quiet
  stats socket /var/lib/haproxy/stats level admin
  maxconn 256
  pidfile /var/run/haproxy.pid
  tune.bufsize 262144

defaults
  timeout connect 5000ms
  timeout client 5000ms
  timeout server 5000ms
  log global
  mode http
  option httplog
  option dontlognull
  option redispatch
  retries 5
  stats uri /haproxy-status

frontend http-in
  mode http
  bind *:80
  maxconn 2000
  redirect scheme https code 301 if !{ ssl_fc } …
Run Code Online (Sandbox Code Playgroud)

reverse-proxy load-balancing haproxy keycloak

5
推荐指数
1
解决办法
8373
查看次数

标签 统计

haproxy ×1

keycloak ×1

load-balancing ×1

reverse-proxy ×1