title: The Streamlit app stops with "Please wait... " and then stops
body: <h2>Problem</h2>
  <p>The app started by running <code>streamlit run main.py</code> will display <code>http://IP_ADDRESS:8501</code> is displayed correctly, but <code>http://DOMAIN_NAME</code> stops with &quot;Please wait... &quot; and stops.</p>
  <p><a href="https://i.stack.imgur.com/5gIBx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5gIBx.png" alt="enter image description here" /></a></p>
  <h2>Environment</h2>
  <ul>
  <li>Domain name already resolved with Route53</li>
  <li>Deploy Streamlit App on EC2 (Amazon Linux) and run <code>Streamlit run main.py</code> on Tmux</li>
  <li>Use Nginx to convert access to port80 to port8501</li>
  </ul>
  <h3>Changed Nginx settings</h3>
  <p>/etc/nginx/nginx.conf</p>
  <pre><code>server {
          listen       80; #default
          listen       [::]:80; #default
          server_name MY_DOMAIN_NAME;
          location / {
            proxy_pass http://MY_IP_ADDRESS:8501;
          }
          root         /usr/share/nginx/html; #default
  </code></pre>
  <h2>What I tried</h2>
  <p>I tried the following, but it did not solve the problem.</p>
  <p><a href="https://docs.streamlit.io/knowledge-base/deploy/remote-start#symptom-2-the-app-says-please-wait-forever" rel="nofollow noreferrer">https://docs.streamlit.io/knowledge-base/deploy/remote-start#symptom-2-the-app-says-please-wait-forever</a></p>
  <ul>
  <li><p><code>streamlit run my_app.py --server.enableCORS=false</code></p>
  </li>
  <li><p><code>streamlit run my_app.py --server.enableWebsocketCompression=false</code></p>
  </li>
  </ul>