24 lines
545 B
Django/Jinja
24 lines
545 B
Django/Jinja
defaults
|
|
mode http
|
|
timeout connect 5s
|
|
timeout client 5s
|
|
timeout server 5s
|
|
|
|
frontend ldap
|
|
mode http
|
|
# bind :80
|
|
bind :443 ssl crt /usr/local/etc/ssl/ldap.pem
|
|
http-response set-header Cache-Control no-cache
|
|
option http-keep-alive
|
|
redirect scheme https if !{ ssl_fc }
|
|
option forwardfor
|
|
default_backend ldap
|
|
|
|
backend ldap
|
|
mode http
|
|
http-reuse safe
|
|
option http-keep-alive
|
|
option forwardfor
|
|
default-server inter 5s fall 3 rise 3
|
|
server srv-phpldapadmin phpldapadmin:80 check
|