【发布时间】:2018-03-19 04:46:17
【问题描述】:
有人用 haproxy 1.7 通过 ejabberd + ssl 终止成功了吗?
frontend ejabberd
bind *:4000 ssl crt /etc/haproxy/certs/my-domain.com.pem
mode tcp
timeout client 3h
option tcplog
option clitcpka
default_backend ejabberd
backend ejabberd
mode tcp
timeout server 60m
option redispatch
option srvtcpka
option independent-streams
balance leastconn
default-server inter 5s rise 3 fall 3 on-marked-down shutdown-sessions
server ejabberd localhost:5222 check slowstart 120s
没有 ssl crt 也能正常工作。我的 smack 客户给了我一个No response received within reply timeout. Timeout was 5000ms (~5s). While waiting for establishing TLS.
我也尝试过在 ejabberd conf 上使用或不使用 ttls
【问题讨论】: