Hi,
I have a Grommunio mail server with the IP 192.168.200.250 and a Keycloak is running on the same server.
I can log in to the Grommunio server with a username and password and then there is a redirect to /web and /auth and then I have a loop.
Here is my current configuration, what is wrong?
global
uid 80
gid 80
chroot /var/haproxy
daemon
stats socket /var/run/haproxy.socket group proxy mode 775 level admin
nbthread 6
hard-stop-after 60s
no strict-limits
tune.ssl.ocsp-update.mindelay 300
tune.ssl.ocsp-update.maxdelay 3600
httpclient.resolvers.prefer ipv4
tune.ssl.default-dh-param 2048
spread-checks 2
tune.bufsize 16384
tune.lua.maxmem 0
log /var/run/log local0 info
lua-prepend-path /tmp/haproxy/lua/?.lua
defaults
log global
option redispatch -1
timeout client 60s
timeout connect 60s
timeout server 60s
retries 3
default-server init-addr last,libc
# Frontend: Letsencrypt80
frontend Letsencrypt80
bind 192.168.100.100:80 name 192.168.100.100:80
mode tcp
default_backend acme_challenge_backend
# logging options
# ACL: find_acme_challenge
acl acl_4446b727496739.59551874 path_beg -i /.well-known/acme-challenge/
# ACTION: redirect_acme_challenges
use_backend acme_challenge_backend if acl_4446b727496739.59551874
# Frontend: LetsEncrypt443 (LetsEncrypt443)
frontend LetsEncrypt443
http-response set-header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
bind 192.168.100.100:443 name 192.168.100.100:443 ssl crt /var/etc/acme-client/certs/64747687955833.89930809/fullchain.pem key /var/etc/acme-client/keys/64747687955833.89930809/private.key
mode http
option http-keep-alive
default_backend acme_challenge_backend
# logging options
# ACL: find_acme_challenge
acl acl_4446b727496739.59551874 path_beg -i /.well-known/acme-challenge/
# ACL: Grommunino
acl acl_664c906453f702.68929731 hdr(host) -i grommunio.test.com
# ACTION: redirect_acme_challenges
use_backend acme_challenge_backend if acl_4446b727496739.59551874
# ACTION: Grommunio
use_backend Grommunio if acl_664c906453f702.68929731
# Backend: acme_challenge_backend (Added by ACME Client plugin)
backend acme_challenge_backend
# health checking is DISABLED
mode http
balance source
# stickiness
stick-table type ip size 50k expire 30m
stick on src
http-reuse safe
server acme_challenge_host 127.0.0.1:43580
# Backend: Grommunio
backend Grommunio
# health checking is DISABLED
mode http
balance source
# stickiness
stick-table type ip size 50k expire 30m
cookie KC_ROUTE insert indirect nocache
# WARNING: pass through options below this line
http-request set-header X-Real-IP %[src]
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Port %[dst_port]
http-request set-header X-Forwarded-For %[src]
http-reuse safe
option forwardfor
server Grommunio 192.168.200.250:443 ssl alpn h2,http/1.1 verify none crt /var/etc/acme-client/certs/64747687955833.89930809/fullchain.pem key /var/etc/acme-client/keys/64747687955833.89930809/private.key
# statistics are DISABLED