Skip to content

Commit

Permalink
install brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 2, 2024
1 parent c1e3db1 commit 9ba1902
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wordpress_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -545,6 +553,7 @@ server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
brotli on;
## Your website name goes here.
# server_name example.com;
Expand Down

0 comments on commit 9ba1902

Please sign in to comment.