From f6babd28602e91a634ec098bc7039c61e13429d0 Mon Sep 17 00:00:00 2001 From: caskd Date: Thu, 12 Dec 2019 13:55:10 +0100 Subject: [PATCH] Add less strict header matching that matches any incoming ports --- build/HAProxy/haproxy.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/HAProxy/haproxy.conf b/build/HAProxy/haproxy.conf index 6e31e5c..f238e33 100644 --- a/build/HAProxy/haproxy.conf +++ b/build/HAProxy/haproxy.conf @@ -43,14 +43,14 @@ frontend https acl public_cache res.hdr(content-type) -i -m str text/css -i -m str application/javascript -i -m beg font/ acl private_cache res.hdr(content-type) -i -m beg image/ -i -m beg audio/ -i -m beg video/ -i -m beg text/ -i -m beg application/ - acl yagpdb req.hdr(host) -i yagpdb.redxen.eu or -i yagpdb.redxen.eu:443 or -i yagpdb.redxen.eu:80 - acl grafana req.hdr(host) -i stats.redxen.eu or -i stats.redxen.eu:443 or -i stats.redxen.eu:80 - acl nextcloud req.hdr(host) -i cloud.redxen.eu or -i cloud.redxen.eu:443 or -i cloud.redxen.eu:80 - acl git req.hdr(host) -i git.redxen.eu or -i git.redxen.eu:443 or -i git.redxen.eu:80 - acl transmission req.hdr(host) -i seed.redxen.eu or -i seed.redxen.eu:443 or -i seed.redxen.eu:80 - acl onlyoffice req.hdr(host) -i office.redxen.eu or -i office.redxen.eu:443 or -i office.redxen.eu - acl seedown req.hdr(host) -i sd.redxen.eu or -i sd.redxen.eu:443 or -i sd.redxen.eu:80 - acl homepage req.hdr(host) -i redxen.eu or -i www.redxen.eu or -i redxen.eu:443 or -i www.redxen.eu:443 or -i redxen.eu:80 or -i www.redxen.eu:80 + acl yagpdb hdr_beg(host) -i yagpdb.redxen.eu + acl grafana hdr_beg(host) -i stats.redxen.eu + acl nextcloud hdr_beg(host) -i cloud.redxen.eu + acl git hdr_beg(host) -i git.redxen.eu + acl transmission hdr_beg(host) -i seed.redxen.eu + acl onlyoffice hdr_beg(host) -i office.redxen.eu + acl seedown hdr_beg(host) -i sd.redxen.eu + acl homepage hdr_beg(host) -i redxen.eu http-request set-header X-Client-IP %[req.hdr_ip(x-forwarded-for)] if is_cf redirect location /remote.php/dav code 301 if dav nextcloud