Add redirections
This commit is contained in:
parent
f7ca1f754b
commit
7100274321
|
@ -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
|
||||
|
|
Reference in New Issue