Add nginx setup

This commit is contained in:
Sambo Chea 2021-04-03 14:02:31 +07:00
parent f07dc5598a
commit af4c1a9825
2 changed files with 17 additions and 1 deletions

16
nginx-setup.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Catch errors
set -e
# Install updates
sudo apt update && sudo apt upgrade -y
# Install nginx from the latest version of repos
sudo apt install nginx -y
# Enable nginx
sudo systemctl enable nginx
# Start nginx
sudo systemctl start nginx

View File

@ -10,4 +10,4 @@ sudo apt-get update
sudo apt upgrade -y sudo apt upgrade -y
# Install postgres and common utils # Install postgres and common utils
sudo apt install postgresql postgresql-contrib sudo apt install postgresql postgresql-contrib -y