Cannot use nginx proxy

Hello everyone

I use nginx to proxy gradio app, for example, https://ip:port/chat/ agent http://127.0.0.1/ Can’t find theme.css, can’t join websocket. How do I set it up

please look at this live example, using Nginx with Gradio