From a8d73cf6ad50aa6b2d7a74a2a5c527faa6fce44f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 2 Oct 2024 11:29:06 +0200 Subject: [PATCH] check if brotli is installed --- lets-encrypt/activate-tls.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lets-encrypt/activate-tls.sh b/lets-encrypt/activate-tls.sh index 980115d..3a15882 100644 --- a/lets-encrypt/activate-tls.sh +++ b/lets-encrypt/activate-tls.sh @@ -104,6 +104,12 @@ fi # To get the correct version for the Nginx conf file check_php +# Check Brotli support +if is_this_installed libnginx-mod-brotli +then + BROTLI_ON="brotli on;" +fi + # Generate wordpress_tls_domain.conf if [ ! -f "$tls_conf" ] then @@ -121,7 +127,7 @@ server { listen 443 ssl; listen [::]:443 ssl; http2 on; - brotli on; + $BROTLI_ON ## Your website name goes here. server_name $TLSDOMAIN;