From 1f1685e457577b59e7b75c776773146e4dce3c31 Mon Sep 17 00:00:00 2001 From: caskd Date: Wed, 15 Jan 2020 21:25:49 +0100 Subject: [PATCH] No more discord and compression enabling --- build/HAProxy/haproxy.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build/HAProxy/haproxy.conf b/build/HAProxy/haproxy.conf index 8477660..ef4cc10 100644 --- a/build/HAProxy/haproxy.conf +++ b/build/HAProxy/haproxy.conf @@ -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