Skip to content

Instantly share code, notes, and snippets.

@ProKn1fe
Created March 9, 2023 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ProKn1fe/9bd26dcd9498588fd950c6e317426487 to your computer and use it in GitHub Desktop.
Save ProKn1fe/9bd26dcd9498588fd950c6e317426487 to your computer and use it in GitHub Desktop.
Build brotli module for nginx
#!/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