Firstly, Download the Script Using:
curl https://dak.sh/nginxsetup.sh -o setup.sh
After that, you'd have to run the file and for that you need to make the script an executable:
chmod +x setup.sh
Once done, now you have to run it:
If you want to completely setup the server, use this command:
sudo ./setup.sh -d yourprimarydomain.com -s complete
Once you're done, you can add more domains using:
sudo ./setup.sh -d yourseconddomain.com -s partial
Partial Setup Can be done using:
sudo ./setup.sh -d domain.com -s partial
Copyright (c) Daksh Miglani, Licensed to MIT