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;