Skip to content

Commit 18cc014

Browse files
authored
Enable Brotli support
Signed-off-by: Daniel Hansson <[email protected]>
1 parent b757130 commit 18cc014

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lets-encrypt/activate-tls.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ then
128128
SETENVPROXY="SetEnv proxy-sendcl 1"
129129
fi
130130

131+
# Install Brotli
132+
if version 24.04 "$DISTRO" 26.04.10
133+
then
134+
install_if_not brotli
135+
a2enmod brotli
136+
fi
137+
131138
# Generate nextcloud_tls_domain.conf
132139
if [ ! -f "$tls_conf" ]
133140
then
@@ -151,6 +158,11 @@ then
151158
SetHandler "proxy:unix:/run/php/php$PHPVER-fpm.nextcloud.sock|fcgi://localhost"
152159
</FilesMatch>
153160
161+
# Brotli support
162+
<IfModule mod_brotli.c>
163+
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
164+
</IfModule>
165+
154166
# Intermediate configuration
155167
Header add Strict-Transport-Security: "max-age=15552000;includeSubdomains"
156168
SSLEngine on

0 commit comments

Comments
 (0)