Deploying nginx in docker with Streamlit and Fastapi

Solved.

The root problem is that documentation is weak.

All samples/examples are illustrated through code or through the hub UI.

None explicitly state that in order to see your docker container run in ‘prod’, you need to access your endpoints through a different domain.

https://{username}-{space name with hyphens instead of spaces or underscores}.hf.space/{endpoint}/

In my case, for my streamlit endpoint
https://kidcoconut-dkr-nginx-templ.hf.space/web/