From 2459f557177dabedf9f80c316763d0022c3b631a Mon Sep 17 00:00:00 2001 From: sunstep <73174517+sunstep@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:00:50 +0200 Subject: [PATCH] Switch Apache from gzip to Brotli --- docs/how_to_setup_reverse_proxy.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/how_to_setup_reverse_proxy.md b/docs/how_to_setup_reverse_proxy.md index e19d8319..a3642089 100644 --- a/docs/how_to_setup_reverse_proxy.md +++ b/docs/how_to_setup_reverse_proxy.md @@ -81,7 +81,7 @@ For Apache2, you might need to enable some modules. Start by entering the follow sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod headers -sudo a2enmod deflate +sudo a2enmod brotli ``` With the above commands entered, the configuration below should work properly. @@ -103,8 +103,9 @@ With the above commands entered, the configuration below should work properly. Header always set X-Forwarded-Server %{SERVER_NAME}s Header always set Host %{HTTP_HOST}s - SetOutputFilter DEFLATE - AddOutputFilterByType DEFLATE application/json + SetOutputFilter BROTLI + AddOutputFilterByType BROTLI_COMPRESS text/css text/plain text/xml text/javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype + BrotliCompressionQuality 6 ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/