Use hiera data for ip4/ip6

This commit is contained in:
Patrik Lundin 2024-10-11 12:03:24 +02:00
parent 498ee6d2f1
commit 1247c7f0be
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -28,8 +28,10 @@ defaults
errorfile 504 /usr/local/etc/haproxy/errors/504.http
frontend customer
bind <%= @customer_ip %>:80
bind <%= @customer_ip %>:443 ssl crt /certs-private/combined.pem
bind <%= @cache_secrets['customers'][@customer]['ip4'] %>:80
bind <%= @cache_secrets['customers'][@customer]['ip6'] %>:80
bind <%= @cache_secrets['customers'][@customer]['ip4'] %>:443 ssl crt /certs-private/combined.pem
bind <%= @cache_secrets['customers'][@customer]['ip6'] %>:443 ssl crt /certs-private/combined.pem
default_backend varnish
backend varnish