From 7d5d1df08073ac54dcf2a95185908777f7b72601 Mon Sep 17 00:00:00 2001 From: sn0wb0i Date: Fri, 19 Jul 2019 22:15:45 -0400 Subject: [PATCH] X-Frontend header --- haproxy.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/haproxy.cfg b/haproxy.cfg index f085282..fa48411 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -40,6 +40,8 @@ frontend http-in mode http reqadd X-Forwarded-Proto:\ http + http-response set-header X-Frontend lv1 + use_backend letsencrypt if { path_beg -i /.well-known/acme-challenge } default_backend redirect-to-https @@ -58,6 +60,8 @@ frontend http-ac-in mode http reqadd X-Forwarded-Proto:\ http + http-response set-header X-Frontend lv1 + use_backend letsencrypt-lv1 if { path_beg -i /.well-known/acme-challenge } backend letsencrypt-lv1