From 9ba1902a8bf3459d42d9f3f0e4fb2c8d71b0e01e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 2 Oct 2024 11:19:16 +0200 Subject: [PATCH] install brotli --- wordpress_install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wordpress_install.sh b/wordpress_install.sh index 9ea145f..a72dae2 100644 --- a/wordpress_install.sh +++ b/wordpress_install.sh @@ -161,6 +161,9 @@ install_if_not build-essential # Needed for cron(tab) install_if_not cron +# For TAB completion +install_if_not bash-completion + # Set DNS resolver # https://unix.stackexchange.com/questions/442598/how-to-configure-systemd-resolved-and-systemd-networkd-to-use-local-dns-server-f while : @@ -253,6 +256,11 @@ sudo systemctl stop nginx.service sudo systemctl start nginx.service sudo systemctl enable nginx.service +# Enable Brotli +install_if_not libnginx-mod-http-brotli-filter +install_if_not libnginx-mod-http-brotli-static +install_if_not libnginx-mod-brotli + # Download TLSv 1.3 modified nginx.conf rm -f /etc/nginx/nginx.conf curl_to_dir "$STATIC" nginx.conf /etc/nginx/ @@ -545,6 +553,7 @@ server { listen 443 ssl; listen [::]:443 ssl; http2 on; + brotli on; ## Your website name goes here. # server_name example.com;