Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put wdb behind a reverse proxy like traefik #143

Open
fabien-michel opened this issue Jan 28, 2020 · 0 comments
Open

Put wdb behind a reverse proxy like traefik #143

fabien-michel opened this issue Jan 28, 2020 · 0 comments

Comments

@fabien-michel
Copy link

Hi,
We use traefik for our project and so we put wdb behind it. To make it clean we setup traefik to bind port 1984 to a specific virtualhost for wdb.
It work, except when wdb GUI try to fetch /status (or others URL) which immediately close the connexion.
Error : wdb_server/init.py:118 "self.warn('Origin and host are not the same, closing websocket...')"
(by the way self.warn does not exists)
After some investigation, we found that X-Forwarded-Proto is "ws" whereas wdb check for "http"

We fix that by forcing traefik to set request header X-Forwarded-Proto to http. But it seems not to be a good fix or something expected.

Can you provide some documentation on how to setup wdb with a reverse proxy ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant