Automate NGINX Compilation from Source with Custom Modules and Patches on Debian & Ubuntu
Easily compile and install NGINX from source with custom features, modules, and patches.
Download and execute the script to:
wget https://raw.githubusercontent.com/AnonVM/Nginx-Installer/main/setup.sh
chmod +x setup.sh
./setup.sh
Check out configuration examples for custom modules.
For automated installations, run the script in headless mode by setting HEADLESS=y
.
HEADLESS=y ./setup.sh
Example commands:
HEADLESS=y NGINX_VER=MAINLINE BROTLI=y ./setup.sh
HEADLESS=y GEOIP=y GEOIP2_ACCOUNT_ID=YOUR_ACCOUNT_ID_HERE GEOIP2_LICENSE_KEY=YOUR_LICENSE_KEY_HERE ./setup.sh
HEADLESS=y OPTION=2 RM_CONF=y RM_LOGS=y ./setup.sh