Skip to content

Commit

Permalink
↩ revert(compress): delete brotli
Browse files Browse the repository at this point in the history
rollback car erreur dans le dockerfile
  • Loading branch information
vincentberry committed Aug 6, 2024
1 parent 84a9e76 commit 5cac16c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
3 changes: 3 additions & 0 deletions config/demo/apache2/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,6 @@ IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<IfModule mod_brotli.c>
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
</IfModule>
3 changes: 3 additions & 0 deletions config/prod/apache2/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf

<IfModule mod_brotli.c>
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
</IfModule>

# 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.
Expand Down

0 comments on commit 5cac16c

Please sign in to comment.