Catch-all configuration for unlimited custom domains?

Thanks for getting back to me. I have changed my config to this:

:80,:443 {
    reverse_proxy https://myapp.herokuapp.com {
      header_up Host {http.reverse_proxy.upstream.hostport}
      header_up X-Real-IP {http.reverse-proxy.upstream.address}
      header_up X-Forwarded-Port {http.request.port}
      header_up X-Forwarded-Host {http.request.host}
    }

    tls me@mydomain.com {
      on_demand
    }
}

I have set the A record of my custom domain (let’s say mydomain.net) to point to the IP address of my Caddy server. Now when I visit https://mydomain.net I’m seeing the following error in my Caddy server logs:

http: TLS handshake error from [my home IP]:51216: no certificate available for 'mydomain.net'
http: TLS handshake error from [my home IP]:51217: no certificate available for 'mydomain.net'
http: TLS handshake error from [my home IP]:51218: tls: client offered only unsupported versions: [301]

I have a feeling I may be missing something crucially important! Thanks for bearing with me.