Git Product home page Git Product logo

nginx-autoinstall's Introduction

nginx-autoinstall

Compile and install Nginx from source with optional modules.

screenshot

Compatibility

  • x86, x64, arm*
  • Debian 8 and later
  • Ubuntu 16.04 and later

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)
  • Block Nginx installation from APT using pinning, to prevent conflicts

Optional modules/features

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 :

update

You have the 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 overwrites the current nginx-autoinstall.sh file in the working directory. This allows you to get the latest features, bug fixes, and module versions automatically.

update

Headless use

You can run the script without the prompts with the option HEADLESS set to y.

HEADLESS=y ./nginx-autoinstall.sh

To install Nginx mainline with Brotli:

HEADLESS=y \
NGINX_VER=2 \
BROTLI=y \
./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.

Log file

A log file is created when running the script. It is located at /tmp/nginx-autoinstall.log.

LICENSE

GPL v3.0

nginx-autoinstall's People

Contributors

angristan avatar jomo avatar novakin avatar punkeel avatar reagn0x avatar siamnews avatar tmiland avatar treyssatvincent avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.