You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen already many issues related to the css handling when using nginx as a reverse proxy. Not sure at what extend this is the same issue.
My setup is the following: I have a docker image with a very basic nginx conf for reverse proxying a gradio app that also runs locally inside the docker.
When I launch the docker container to start the nginx server and the gradio app inside mapping local port 443 to 443, it works, although it still shows some errors (image below)
The funny behaviour comes when I map docker with a different port. This means using local port 4208 to container port 443, for handling the https requests. In this moment, the css can't be loaded.
I've tried with several releases of gradio. The result that is shown below belongs to gradio 4.31.0.
I leave here a mocked version of my gradio app, as well as the nginx conf file
Describe the bug
I've seen already many issues related to the css handling when using nginx as a reverse proxy. Not sure at what extend this is the same issue.
My setup is the following: I have a docker image with a very basic nginx conf for reverse proxying a gradio app that also runs locally inside the docker.
When I launch the docker container to start the nginx server and the gradio app inside mapping local port 443 to 443, it works, although it still shows some errors (image below)
The funny behaviour comes when I map docker with a different port. This means using local port 4208 to container port 443, for handling the https requests. In this moment, the css can't be loaded.
I've tried with several releases of gradio. The result that is shown below belongs to gradio 4.31.0.
I leave here a mocked version of my gradio app, as well as the nginx conf file
I tried to follow your guide in https://www.gradio.app/guides/running-gradio-on-your-web-server-with-nginx as much as possible, as I know little to nothing about nginx.
And just in case you ask, the port mapping in docker comes from a production necessity in a real server, so I can't avoid it.
Thanks in advance
Have you searched existing issues? 🔎
Reproduction
This is the mocked version of the gradio code:
This is the separate nginx conf file for that particular page in sites-available:
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: