Skip to content

Commit

Permalink
fix(pagespeed): update fqdn + instructions
Browse files Browse the repository at this point in the history
this fixes the deadlinks for pagespeed, see [https://github.com/apache/incubator-pagespeed-ngx/issues/1656](https://github.com/apache/incubator-pagespeed-ngx/issues/1656).

Also added clearer instructions if pagespeed is used as a module so that users know to adjust their `nginx.conf`
  • Loading branch information
sam bacha authored Mar 19, 2021
1 parent 65f1a1e commit 31905f4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions nginx-autoinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@ case $OPTION in
# PageSpeed
if [[ $PAGESPEED == 'y' ]]; then
cd /usr/local/src/nginx/modules || exit 1
wget https://github.com/pagespeed/ngx_pagespeed/archive/v${NPS_VER}-stable.zip
unzip v${NPS_VER}-stable.zip
cd incubator-pagespeed-ngx-${NPS_VER}-stable || exit 1
psol_url=https://dl.google.com/dl/page-speed/psol/${NPS_VER}.tar.gz
[ -e scripts/format_binary_url.sh ] && psol_url=$(scripts/format_binary_url.sh PSOL_BINARY_URL)
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v1.14.33.1-RC1.zip
unzip v1.14.33.1-RC1.zip
cd incubator-pagespeed-ngx-1.14.33.1-RC1 || exit 1
psol_url=https://dist.apache.org/repos/dist/release/incubator/pagespeed/1.14.36.1/x64/psol-1.14.36.1-apache-incubating-x64.tar.gz
wget "${psol_url}"
tar -xzvf "$(basename "${psol_url}")"
fi
Expand Down Expand Up @@ -395,7 +394,11 @@ case $OPTION in
NGINX_MODULES=$(
echo "$NGINX_MODULES"
echo "--add-module=/usr/local/src/nginx/modules/incubator-pagespeed-ngx-${NPS_VER}-stable"
echo "To load the ngx_pagespeed module, you'll need to add:"
echo " load_module \"modules/ngx_pagespeed.so\";"
echo "at the top of your main nginx configuration file."
)

fi

if [[ $BROTLI == 'y' ]]; then
Expand Down

0 comments on commit 31905f4

Please sign in to comment.