From 5cac16c50dee8d1b279ddd040f294e0253a77dcf Mon Sep 17 00:00:00 2001 From: vincentberry Date: Tue, 6 Aug 2024 14:10:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=86=A9=20revert(compress):=20delete=20brotli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rollback car erreur dans le dockerfile --- Dockerfile | 2 ++ config/demo/apache2/apache2.conf | 3 +++ config/prod/apache2/apache2.conf | 3 +++ 3 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 94e1c65..113304e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ EXPOSE 80 WORKDIR /var/www/html/ RUN apt-get update -qq && \ + apt install libapache2-mod-brotli && \ apt-get install -qy \ git \ gnupg \ @@ -44,6 +45,7 @@ RUN mkdir -p /var/www/html/db/ RUN chmod -R 777 /var/www/html/db/ RUN chmod -R 777 /var/www/html/file/ RUN a2enmod rewrite +RUN a2enmod brotli RUN a2enmod remoteip && \ a2enconf swag && \ /etc/init.d/apache2 restart \ No newline at end of file diff --git a/config/demo/apache2/apache2.conf b/config/demo/apache2/apache2.conf index fff772d..8b1c878 100644 --- a/config/demo/apache2/apache2.conf +++ b/config/demo/apache2/apache2.conf @@ -225,3 +225,6 @@ IncludeOptional conf-enabled/*.conf IncludeOptional sites-enabled/*.conf # vim: syntax=apache ts=4 sw=4 sts=4 sr noet + + AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css application/javascript application/x-javascript application/json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/rdf+xml application/x-font-ttf application/x-font-opentype application/font-woff application/vnd.ms-fontobject image/svg+xml + \ No newline at end of file diff --git a/config/prod/apache2/apache2.conf b/config/prod/apache2/apache2.conf index fff772d..bad87c9 100644 --- a/config/prod/apache2/apache2.conf +++ b/config/prod/apache2/apache2.conf @@ -149,6 +149,9 @@ IncludeOptional mods-enabled/*.conf # Include list of ports to listen on Include ports.conf + + AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css application/javascript application/x-javascript application/json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/rdf+xml application/x-font-ttf application/x-font-opentype application/font-woff application/vnd.ms-fontobject image/svg+xml + # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share and /var/www.