Fix haproxy service config when ssl is enabled
This patch fixes the formatting for an haproxy service which has ssl enabled. Without this patch the 'reqadd X-Forwarded-Proto' line ends up on the same line as the 'set request_option' line. Change-Id: I0567797304646d7da9badfd193a1368b8a97b0db Closes-Bug: #1475242
This commit is contained in:
parent
76680e9abd
commit
7984844008
@ -13,6 +13,7 @@ bind {{ item.service.haproxy_bind|default('*') }}:{{ item.service.haproxy_port }
|
||||
option tcplog
|
||||
{%- set request_option = "tcp" %}
|
||||
{% endif %}
|
||||
|
||||
{% if item.service.haproxy_ssl is defined and item.service.haproxy_ssl | bool %}
|
||||
reqadd X-Forwarded-Proto:\ https
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user