diff --git a/lets-encrypt/activate-tls.sh b/lets-encrypt/activate-tls.sh index 274d506a8b..dd46920b1f 100644 --- a/lets-encrypt/activate-tls.sh +++ b/lets-encrypt/activate-tls.sh @@ -128,6 +128,28 @@ then SETENVPROXY="SetEnv proxy-sendcl 1" fi +# Install Brotli +if version 24.04 "$DISTRO" 26.04.10 +then + if ! [ -f /etc/apache2/conf-available/brotli.conf ] + then + # Install needed packaages + install_if_not brotli + + # Add the config + { + echo "# Brotli support" + echo "" + echo " AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon" + echo "" + } > /etc/apache2/conf-available/brotli.conf + + # Enable the config + a2enmod brotli + a2enconf brotli + fi +fi + # Generate nextcloud_tls_domain.conf if [ ! -f "$tls_conf" ] then