Streamlit application and Nginx setup

I have configured a chatbot in aws ec2 (ubuntu) and when i try to access my chatbot using public ip with 8501, i am able to access it but getting issue with a domain which i have purchased it from godaddy chatbotshikhar.com.
root@ip-172-31-26-187:~/.streamlit# curl -v -X POST http://127.0.0.1:8501/_stcore/stream -H “Origin: https://chatbotshikhar.com

  • Trying 127.0.0.1:8501…
  • Connected to 127.0.0.1 (127.0.0.1) port 8501 (#0)

POST /_stcore/stream HTTP/1.1
Host: 127.0.0.1:8501
User-Agent: curl/7.81.0
Accept: /
Origin: https://chatbotshikhar.com

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 405 Method Not Allowed
    < Server: TornadoServer/6.4.1
    < Content-Type: text/html; charset=UTF-8
    < Date: Mon, 04 Nov 2024 04:39:35 GMT
    < Content-Length: 87
    < Vary: Accept-Encoding
    <
  • Connection #0 to host 127.0.0.1 left intact