Certain static files are requested over http (instead of https) behind kubernetes proxy #9381
Open
1 task done
Labels
bug
Something isn't working
Describe the bug
After attempting to reproduce the settings shown in https://www.gradio.app/guides/running-gradio-on-your-web-server-with-nginx as well as having tried several solutions discussed in other issues in this repo and others (FastAPI, Nginx, etc.) I find myself clueless how to solve this issue.
Basically, I have my dockerised gradio application that does some pretty basic stuff, being one of them displaying some audios. The application works well in localhost. The problem comes when I deploy it on kubernetes cluster (the url runs on https). This cluster features both an k8s ingress controller and an nginx load balancer which setup the SSL connection for the client.
Overall, the app seems fine, but SOME static files (
/assets/index-DuXXhepF.css
, favicon.ico and the aforementioned audio files in wav format) are not received correctly. For the .css and favicon file it returns a 404 status code (the app seems fine, though), but for the audios there is a mixed block issue. If I have a look at the request, I can see that the request is made to http://......The audio can still be accessed by that URL, and can be effectively downloaded via browser. Moreover, if I attempt to make the request again manually this time changing the scheme to https, the audio is received successfully:
Moreover, if I perform a port forwarding from k8s to localhost everything seems fine, which goes to tell that the problem is probably in the proxy.
My question is: why some some of these files are being requested over http, causing this error?
Have you searched existing issues? 🔎
Reproduction
The gradio app is the least important thing here I think. Just assume that it displays an audio that is publicly available
for my kubernetes
ingress.yaml
file I have the following:I have also tried setting up the env variable
FORWARDED_ALLOW_IPS="*"
for testing purposes, but it still renders the same result.Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: