Skip to content

Instantly share code, notes, and snippets.

@Chrissi2812
Created June 8, 2020 12:24
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 Chrissi2812/38df94ecca032e1b38f012b38f9e1628 to your computer and use it in GitHub Desktop.
Save Chrissi2812/38df94ecca032e1b38f012b38f9e1628 to your computer and use it in GitHub Desktop.
This will configure nginx to build a ngx_brotli.
/#!/bin/bash
./configure --prefix=/usr/share \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--modules-path=/usr/share/nginx/modules \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--user=nginx \
--group=nginx \
--with-file-aio \
--with-compat \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_v2_module \
--add-dynamic-module=/root/addons/nginx/modules/ngx_brotli \
--with-openssl-opt='zlib no-idea no-mdc2 no-rc5 no-ssl2 no-shared -fpic'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment