If you can’t control ports 80 and 443 or they are blocked, you’ll have to use the DNS challenge – it is the only way: Automatic HTTPS — Caddy Documentation
If you can’t control ports 80 and 443 or they are blocked, you’ll have to use the DNS challenge – it is the only way: Automatic HTTPS — Caddy Documentation