First off, you need a CentOS instance. If you want to go the VPS route, I recommend Vultr. If you don’t have an account yet, I’d really appreciate if you could use my affiliate link when signing up 🙂
Once done, you also need an SSL certificate.
Then you can use my script to do all the rest for you:
git clone https://github.com/bviktor/nginx-centos.git
A walk in the park!