How to make rasa webchat work with nginx and https

Hi, When I connect my Rasa chatbot to MS Teams through ngrok, it functions perfectly. However, when I switch to using nginx, although the rasa chat widget works well, it fails to appear over HTTPS. Consequently, I’m unable to integrate it with Teams.