Skip to content

Put wdb behind a reverse proxy like traefik #143

@fabien-michel

Description

@fabien-michel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions