Nginx Autoinstall

Compile NGINX from source with custom modules and patches on Debian and Ubuntu
Alternatives To Nginx Autoinstall
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Uwsgi Nginx Flask Docker2,795
2 months ago29apache-2.0Python
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Vpstoolbox1,683
21 days ago7mitShell
一键在 Linux VPS 上安装 Trojan-GFW。Trojan-GFW script designed for Debian based Linux virtual private server.
Swizzin1,586
2 days ago52gpl-3.0Shell
A simple, modular seedbox solution
Dokku Alt1,198
7 years ago134mitShell
Dokku on steroids (this project is no longer actively maintained)
Rtinst1,162
6 months ago33mitShell
seedbox installation script for Ubuntu and Debian systems
Wordops1,036
5 days ago22April 29, 2022150mitPython
Install and manage a high performance WordPress stack with a few keystrokes
Ansible Role Nginx754
12 days ago3mitJinja
Ansible Role - Nginx
Uwsgi Nginx Docker597
2 months ago12apache-2.0Python
Docker image with uWSGI and Nginx for applications in Python (as Flask) in a single container. Optionally with Alpine Linux.
Nginx Autoinstall583
a month ago39gpl-3.0Shell
Compile NGINX from source with custom modules and patches on Debian and Ubuntu
Wordpress Nginx368
3 months ago6mitNginx
WordPress specific Nginx configuration templates and best practices!
Alternatives To Nginx Autoinstall
Select To Compare


Alternative Project Comparisons
Readme

nginx-autoinstall

Compile and install NGINX from source with optional features, modules and patches.

Compatibility

  • Debian 9 and later
  • Ubuntu 16.04 and later

The script might work on ARM-based architectures, but it's only being regularly tested against x86_64 with GitHub Actions.

Features

  • Latest mainline or stable version, from source
  • Optional modules and patches
  • Custom nginx.conf (default does not work)
  • Init script for systemd (not provided by default)
  • Logrotate conf (not provided by default)
  • Block Nginx installation from APT using pinning, to prevent conflicts

Optional modules/features

Cache Modules

Usage

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 will be able to:

  • Install NGINX
  • Update NGINX (It will install it again and overwrite current files and/or modules.)
  • Uninstall NGINX with optional cleanup
  • Self-update the script

Just follow the question!

You can check configuration examples for the custom modules.

Headless use

You can run the script without the prompts with the option HEADLESS set to y. This allows for automated install and scripting. This is what is used to test the script with GitHub Actions.

HEADLESS=y ./nginx-autoinstall.sh

To install Nginx mainline with Brotli:

HEADLESS=y \
NGINX_VER=MAINLINE \
BROTLI=y \
./nginx-autoinstall.sh

To install with Geoip:

HEADLESS=y \
GEOIP=y \
GEOIP2_ACCOUNT_ID=YOUR_ACCOUNT_ID_HERE \
GEOIP2_LICENSE_KEY=YOUR_LICENSE_KEY_HERE \
./nginx-autoinstall.sh

To uninstall Nginx and remove the logs and configuration files:

HEADLESS=y \
OPTION=2 \
RM_CONF=y \
RM_LOGS=y \
./nginx-autoinstall.sh

All the default variables are set at the beginning of the script.

LICENSE

GPL v3.0

Popular Debian Projects
Popular Nginx Projects
Popular Operating Systems Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell
Http
Http2
Nginx
Debian
Openssl
Cloudflare
Ngx
Geoip
Waf
Pagespeed
Brotli
Modsecurity
Curve25519