Skip to content

Commit

Permalink
Enable Brotli support (#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Nov 28, 2024
1 parent b757130 commit 0c34400
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lets-encrypt/activate-tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<IfModule mod_brotli.c>"
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 "</IfModule>"
} > /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
Expand Down

0 comments on commit 0c34400

Please sign in to comment.