File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ then
128128 SETENVPROXY=" SetEnv proxy-sendcl 1"
129129fi
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
132139if [ ! -f " $tls_conf " ]
133140then
@@ -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
You can’t perform that action at this time.
0 commit comments