Minecraft is not an HTTP server, it’s a TCP server (as far as I know). So you won’t be able to use vanilla Caddy to proxy to it.
You’d need to use caddy-l4
which does support proxying TCP:
But I doubt that Minecraft supports TLS over TCP, so I don’t think this is what you’re looking for.