nginx-autoinstall
Automatically compile from source and install Nginx mainline, on Debian 8 and 9 (x86 and ARM, 32 and 64 bits).
Features
- Latest mainline or stable version, from source
- Optional modules (see below)
- Removed useless modules
- Custom nginx.conf (default does not work)
- Init script for systemd (not provided by default)
- Logrotate conf (not provided by default)
Optional modules/features
- LibreSSL from source (ChaCha20 cipher, HTTP/2 + ALPN, Curve25519, P-521)
- OpenSSL from source (ChaCha20 cipher, HTTP/2 + ALPN, Curve25519, P-521)
- ngx_pagespeed (Google performance module)
- ngx_brotli (Brotli compression algorithm)
- ngx_headers_more (Custom HTTP headers)
- GeoIP (GeoIP module and databases)
- Cloudflare's TLS Dynamic Records Resizing patch (Optmize lantency and throughput for TLS exchanges)
Install Nginx
Just download and execute the script :
wget https://raw.githubusercontent.com/Angristan/nginx-autoinstall/master/nginx-autoinstall.sh
chmod +x nginx-autoinstall.sh
./nginx-autoinstall.sh
You can check configuration examples for the custom modules.
Uninstall Nginx
Just select the option when running the script :
You have te choice to delete the logs and the conf.
Update Nginx
To update Nginx, run the script and install Nginx again. It will overwrite current Nginx files and/or modules.
Update the script
The update feature downloads the script from this repository, and overwrite the current nginx-autoinstall.sh
file in the working directory. This allows you to get the latest features, bug fixes, and module versions automatically.
Logs files
There are two logs files created when running the script.
/tmp/nginx-autoinstall-output.log
/tmp/nginx-autoinstall-error.log
(use this one for debugging)
LICENSE
GPL v3.0