From 71f38da82706e79108dd8a1df567062e4d8614f4 Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Mon, 17 Jun 2024 14:05:37 +0200 Subject: [PATCH] Haproxy: Add redirect rules to restricted frontend --- roles/haproxy/templates/haproxy_frontend.cfg.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/haproxy/templates/haproxy_frontend.cfg.j2 b/roles/haproxy/templates/haproxy_frontend.cfg.j2 index 426ffa691..f1d92acd8 100644 --- a/roles/haproxy/templates/haproxy_frontend.cfg.j2 +++ b/roles/haproxy/templates/haproxy_frontend.cfg.j2 @@ -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 %}