Configuring domain
Add two AAAA records to the domain, and point it to the web server’s IPv6 address.
Restarting Caddy2
Wait few minutes for domain DNS ready. The restart Caddy2.
If Caddy2 worked well on IPv4(This article guide Caddy2 IPv4 setup), it can configure IPv6 automaticlly.
Verifying
Open https://ip6.nl to verify if IPv6 is working.