Uppy companion with nginx and SSL

I found that my companion works if I remove cloudflare in front of it. Can you please tell me how to bypass cloudflare when I’m trying to connect to my companion server?

I paused cloudflare and used ssl certs from cerboot and it still doesn’t work. Can you give me an example of how should I configure my nginx with ssl to get it to work?