This is part of my complete guide to Setting up a CentOS Digital Ocean droplet with Nginx for beginners.
If you want to get to the meat of the post, jump down to the guide.
I spent about three days trying to get this to work with an https server, but eventually gave in. There were too many issues related to the account the hook would run under for my limited linux experience to solve. So the SSH method will have to do for now.