This demo shows how to serve NiceGUI on a subpath behind a reverse proxy. Here we use Nginx. For a Traeffic demo have a look at https://github.com/zauberzeug/nicegui/blob/main/docker-compose.yml.
Just run
docker-compose up
Then you can access http://localhost/nicegui.