Skip to content

Commit

Permalink
check if brotli is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 2, 2024
1 parent 50adafa commit a8d73cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lets-encrypt/activate-tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit a8d73cf

Please sign in to comment.