No more discord and compression enabling

This commit is contained in:
caskd 2020-01-15 21:25:49 +01:00
parent 2f55568ed4
commit 1f1685e457
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
1 changed files with 1 additions and 5 deletions

View File

@ -15,7 +15,7 @@ defaults
option tcp-smart-connect
option tcpka
option http-buffer-request
compression offload
compression algo gzip
timeout http-request 10s
timeout connect 10s
timeout client 60s
@ -37,9 +37,7 @@ frontend https
mode http
bind *:80 defer-accept
acl is_cf req.hdr_ip(x-forwarded-for) -m found
acl root url /
acl discord-redirect url /discord
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/
@ -50,10 +48,8 @@ frontend https
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 /index.html code 301 if homepage root
redirect location /web/ code 301 if transmission root
redirect location https://discord.gg/CTFMzde code 301 if discord-redirect homepage
http-response replace-header Set-Cookie (.*) \1;\ Secure
http-response add-header X-Forwarded-Proto https