SSl error when using lib-jitsi-meet api

Hi,
I’m getting this
POST https://jitsi.example.com:80/http-bind net::ERR_SSL_PROTOCOL_ERROR .
I’m using the example code in the jitsi-meet and not the actual UI.
The jitsi UI is working fine but this is the error which I’m getting when I try with an custom UI.

Hey will you please tell me how did you solved this issue please?

Is ssl properly configured enabled in nginx? Are the certs installed in the right location?

I am using apache2 and a public IP for this.
Yes the certs are installed in the proper location.