This isn’t really a question about Caddy, it’s a question about how MinIO works. I can’t answer that. MinIO is producing that error, so you’ll need to ask them what could be the issue.
But in general, when proxying over HTTPS, you typically need the Host
header to be correct. It should match the domain/certificate that the upstream is expecting. See the docs: