Add less strict header matching that matches any incoming ports

This commit is contained in:
caskd 2019-12-12 13:55:10 +01:00
parent fe001456b4
commit f6babd2860
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
1 changed files with 8 additions and 8 deletions

View File

@ -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