Skip to content

Instantly share code, notes, and snippets.

@bennof
Last active April 19, 2021 16:26
Show Gist options
  • Save bennof/39269a60f362f79f978ad03e97b4ac29 to your computer and use it in GitHub Desktop.
Save bennof/39269a60f362f79f978ad03e97b4ac29 to your computer and use it in GitHub Desktop.
Setup Nginx on Debian/Ubuntu - all the lines I ever forget
#!bin/sh
# Setup Nginx on Debian/Ubuntu
# (c) 2020-2021 Benjamin 'Benno' Falkner
set -e # halt on error, debug
cat <<EOF
Setup Nginx on Debian/Ubuntu
(c) 2020-2021 Benjamin 'Benno' Falkner (MIT-License)
EOF

Nginx Setup

Idea

The idea is to create a nginx shell script to simplyfy setup, because most of the config is always the same. The script will be developed for Debian/Ubuntu with sodo installed.

Check if nginx installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment