Install caddy by going to the github page: -
https://github.com/caddyserver/caddy/releases - wget the link
you need (linux_amd64.tar.gz) and unpack the zip file with -
tar -xvzf caddy_version_os_arch.tar.gz. - Move the file over to
/usr/local/bin with mv caddy /usr/local/bin/caddy.
Domain Configuration
With a Google Domain, Go to the Custom Resource Records, and set an
A level record with a TTL to 1h and set the data field to the
IPv4 address you have configured.
Wait for about 5 minutes for the changes to take effect.
Port 80 and Port 443 must be open.
Run the following commands to open traffic to port 80 and 443.