The setup need DigitalOcean account and Domain on DigitalOcean’s nameserver. Otherwise, it’d need a different step to complete.
If you need a good HTTPS proxies that come with auto Let’s Encrypt certificates and already a user of DigitalOcean. Here I’ve got an easy but solid way to deploy one. Already using this on a production servers with no problem so far.
From beginning to deploy.
- Setup domain to use DigitalOcean’s nameserver.
- Create droplet using pre-defined
CNAMEthat point domain to droplet’s IP address.
SSHinto droplet and create directory
caddyin home directory.
- Create DigitalOcean auth token and keep it close.
Caddyfilein home directory.
docker-compose.ymlin home directory.
- From home directory, use command
docker-compose up -d
- Caddy’s online. That’s it. No more hassle.
Where to go from here
See official documentation of Caddy. There’s a lot of features that can be easily setup using simple directives.