Kopia repo server through cloudflare tunnel

Hi al. How can the kopia repository server (which uses its own certificate) be used through a cloudflare tunnel, please?

The repo server has worked perfectly fine for years. So has the tunnel. However, since cloudflare offers its own certificates, the client (connecting over the internet) sees that certificate and not the cert of the repo server.

I’ve tried setting the tunnel to ‘TCP’ and ‘HTTP’ instead of ‘HTTPS’ and tried connecting with the certificate hash of the cloudflare certs and tried connecting without any hash.

Pointers are much appreciated!

The ‘TLS no verify’ option does nothing to resolve the issue.