Caddy / Localhost / HTTPS = "This site can’t provide a secure connection"

By the way, this will never work with HTTPS because you’ve set the scheme to http://.