Browse Source

Add redirections

master
Alex 2 years ago
parent
commit
7100274321
Signed by: caskd GPG Key ID: F92BA85F61F4C173
  1. 4
      templates/haproxy.conf.j2

4
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