From cbc0869cd64843dddb7135edb949bffb427383bc Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Fri, 24 Aug 2018 13:11:55 +0200 Subject: [PATCH] Refactors to use acl. --- templates/haproxy.cfg.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl index 9726bd8..965fdf4 100644 --- a/templates/haproxy.cfg.tmpl +++ b/templates/haproxy.cfg.tmpl @@ -35,7 +35,8 @@ mode http rspidel Server rspidel X-Powered-By - use_backend letsencrypt-web if { path_beg /.well-known/acme } + acl acme path_beg /.well-known/acme + use_backend letsencrypt-web if acme {{ range $host, $containers := groupBy $ "Env.LIBRESH_WEBHOOK_HOST" }} use_backend webhook if { path_beg /XxosJDdRpo7Rww87VkJGzv1QLegnhh-uniq-libresh } {{end}} -- GitLab