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