Skip to content

Ability to self-host drawio (using baseUrl environment variable) #504

Closed

Description

@salman2learn

When self-hosting docmost, drawio diagram still reach out to embed.diagrams.net (the default url for drawio embedding).

Potential solution:
react-drawio package supports baseUrl to override the default url with a self-hosted drawio url.
see: https://www.npmjs.com/package/react-drawio#api-documentation

Request is to:

  1. Accept DRAWIO_BASEURL environment variable.
  2. If that env variable is supplied, pass it to DrawIoEmbed at: https://github.com/docmost/docmost/blob/main/apps/client/src/features/editor/components/drawio/drawio-view.tsx

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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