Add redirections

This commit is contained in:
Alex 2020-06-01 13:32:29 +02:00
parent f7ca1f754b
commit 7100274321
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 4 additions and 0 deletions

View File

@ -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