Skip to content

Commit

Permalink
Haproxy: Add redirect rules to restricted frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jun 17, 2024
1 parent 9dfbfc7 commit 71f38da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/haproxy/templates/haproxy_frontend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,6 @@ frontend localhost_restricted
acl securitytxt path /.well-known/security.txt
http-request redirect location {{ haproxy_securitytxt_target_url }} if securitytxt
{% endif %}
http-request redirect location %[base,map_reg(/etc/haproxy/maps/redirects.map)] if { base,map_reg(/etc/haproxy/maps/redirects.map) -m found }

{% endif %}

0 comments on commit 71f38da

Please sign in to comment.