I am trying to serve a gradio app behind an oauth2-proxy.
Potentially relevant oauth proxy settings are as follows:
OAUTH2_PROXY_HTTP_ADDRESS=:4180 OAUTH2_PROXY_UPSTREAMS=http://localhost:8080 OAUTH2_PROXY_OIDC_ISSUER_URL=<redacted> OAUTH2_PROXY_PASS_AUTHORIZATION_HEADER=false OAUTH2_PROXY_SET_AUTHORIZATION_HEADER=false OAUTH2_PROXY_SKIP_BEARER_TOKENS=true OAUTH2_PROXY_COOKIE_HTTPONLY=true
and for Gradio
(the app is launched using
The auth flow looks all good, I can see the app, however, anytime I try to interact with it, I run into fairly non-descript websocket errors:
WebSocket connection to 'wss://<public-host>.com/queue/join' failed: (anonym) @ index.js:474
I have attempted stepping through index.js with a couple of breakpoints but cannot seem to identify the core reason (logs on the oauth proxy look fine, no other log messages on the gradio app server).
Is anyone serving gradio behind
oauth2-proxy? For any advice on what to look out for I would be very happy!