Streamlit fine on foo.com:8501, not on foo.com/bar

So, I’ve just built our meme search example and it works great!

However, we’re trying to get it running at examples.jina.ai/memes and that’s…not so great. We just get “Please wait…” and “Connecting”

We’re running Ubuntu 20.04 AWS ec2-large. Our /etc/nginx/sites-enabled looks like:

server {
    listen 80;
    server_name  examples.jina.ai;   
    
    location /memes/ {
      proxy_pass      http://127.0.0.1:8501/;
    }
}

The root address (examples.jina.ai) works fine, so nginx is definitely working right as far as I can tell, though I’m a bit of a n00b in that regard.

Any help would be really appreciated!

For additional context (likely not relevant, but who knows?), I’m running this as a service under systemd:

[Unit]
Description=Frontend for Jina meme search

[Service]
User=ubuntu
WorkingDirectory=/home/ubuntu/alexcg/meme-search/frontend
ExecStart=/bin/bash -c 'cd /home/ubuntu/alexcg/meme-search/frontend && source env/bin/activate && streamlit run app.py'
Restart=always

[Install]
WantedBy=multi-user.target

systemctl status meme-frontend brings up no error messages or much of anything else