Skip to content

Commit 9ba1902

Browse files
authored
install brotli
1 parent c1e3db1 commit 9ba1902

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

wordpress_install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ install_if_not build-essential
161161
# Needed for cron(tab)
162162
install_if_not cron
163163

164+
# For TAB completion
165+
install_if_not bash-completion
166+
164167
# Set DNS resolver
165168
# https://unix.stackexchange.com/questions/442598/how-to-configure-systemd-resolved-and-systemd-networkd-to-use-local-dns-server-f
166169
while :
@@ -253,6 +256,11 @@ sudo systemctl stop nginx.service
253256
sudo systemctl start nginx.service
254257
sudo systemctl enable nginx.service
255258

259+
# Enable Brotli
260+
install_if_not libnginx-mod-http-brotli-filter
261+
install_if_not libnginx-mod-http-brotli-static
262+
install_if_not libnginx-mod-brotli
263+
256264
# Download TLSv 1.3 modified nginx.conf
257265
rm -f /etc/nginx/nginx.conf
258266
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
@@ -545,6 +553,7 @@ server {
545553
listen 443 ssl;
546554
listen [::]:443 ssl;
547555
http2 on;
556+
brotli on;
548557
549558
## Your website name goes here.
550559
# server_name example.com;

0 commit comments

Comments
 (0)