Created
March 9, 2023 21:13
-
-
Save ProKn1fe/9bd26dcd9498588fd950c6e317426487 to your computer and use it in GitHub Desktop.
Build brotli module for nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NGINX_SRC=https://nginx.org/packages/mainline/ubuntu/pool/nginx/n/nginx/nginx_1.23.3.orig.tar.gz | |
BROTLI_GIT=https://github.com/google/ngx_brotli.git | |
rm *.tar.gz | |
rm -R nginx | |
wget $NGINX_SRC | |
tar xf *.tar.gz | |
git clone --recursive $BROTLI_GIT | |
cd nginx*/ | |
./configure --with-compat --add-dynamic-module=../ngx_brotli | |
make modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment