Kobo Install Not working

I was getting an erro 499 which I still don’t understand the reason for. I cleared out everything and reinstalled using http only, as https installation was not working. I have generated my own certificates and would like to know how I can configure the server to use https instead of http. I have placed my certificates in the nginx/secrets folder and restarted the nginx certbot container but https connection is still refusing