21e5b21f59
I35317ea0343f0db74ddc0e587862e95408e9e106 changed certificate path but omitted single frontend template. Change-Id: I638ba32e97234900745df62056710dcc37e7db77
12 lines
641 B
Django/Jinja
12 lines
641 B
Django/Jinja
{%- set external_tls_bind_info = 'ssl crt /etc/haproxy/certificates/haproxy.pem' if kolla_enable_tls_external|bool else '' %}
|
|
|
|
frontend external_frontend
|
|
mode http
|
|
http-request del-header X-Forwarded-Proto
|
|
{% for http_option in haproxy_external_single_frontend_options %}
|
|
{{ http_option }}
|
|
{% endfor %}
|
|
http-request set-header X-Forwarded-Proto https if { ssl_fc }
|
|
bind {{ kolla_external_vip_address }}:{{ haproxy_external_single_frontend_public_port }} {{ external_tls_bind_info }}
|
|
use_backend %[req.hdr(host),lower,map_dom(/etc/haproxy/external-frontend-map,{{ haproxy_external_single_frontend_default_backend }})]
|