diff --git a/templates/haproxy.conf.j2 b/templates/haproxy.conf.j2 index 333f537..532cc09 100644 --- a/templates/haproxy.conf.j2 +++ b/templates/haproxy.conf.j2 @@ -52,6 +52,10 @@ frontend http use_backend backend-{{ domains.service }} if { hdr_beg(host) -i {{ domains.domain }} } {% endfor %} +{% for pfred in haproxy.redirect.prefix %} + redirect prefix {{ pfred.pfx }} code {{ pfred.code|default("302") }} {% if pfred.acl|default() %} if {{ pfred.acl }}{% endif %} +{% endfor %} + http-response add-header X-Forwarded-Proto https http-response set-header X-XSS-Protection 1;\ mode=block http-response set-header X-Content-Type-Options nosniff