How do I properly convert my old Caddyfile to the new Caddy 2 standard?

Yup! Use the steps described here to build Caddy v2 from source with the Cloudflare DNS plugin: