Skip to content

[BUG] Impossible to share (self hosted DrawDB) #655

@lagraviereScience

Description

@lagraviereScience

Hi all,

Thanks for this amazing project <3

Identical issue

This issue here #584 reports the same problem
The person who created the issue seems to have solved their problem, but forgot to share how they did it.

Here's the issue

When I click the share button (top right of the screen), I get this error:

172.18.0.4 - - [18/Oct/2025:19:37:59 +0000] "POST /undefined/gists HTTP/1.1" 405 157 "https://drawdb.blabla.blabla/editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0" "172.18.0.1"

Technical Setup

I'm running DrawDB with docker compose (in portainer). As far as I can tell, everything is running fine except that "share feature":

  drawdb:
    image: drawdb
    networks:
      - private_secured_network
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.drawdb.rule=Host(`blabla.blabla.blabla`)"
      - "traefik.http.routers.drawdb.entrypoints=websecure"
      - "traefik.http.routers.drawdb.tls.certresolver=myresolver"
      - "traefik.http.services.drawdb.loadbalancer.server.port=80"
    environment:
      - VITE_BACKEND_URL=https://drawdb-api.blabla.blabla
  drawdb-server:
    image: node:20-alpine
    environment: 
      - CLIENT_URLS=https://drawdb.blabla.blabla
      - MAIL_PASSWORD=
      - MAIL_USERNAME=
      - MAIL_SERVICE=gmail
      - PORT=5000
      - NODE_ENV=prod
      - GITHUB_TOKEN=a-gh-token
    container_name: drawdb-server
    working_dir: /var/www/html
    volumes:
      - /home/blabla/Desktop/apps/drawdb/drawdb-server:/var/www/html
    command: sh -c "npm install && npm run dev"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.drawdb-api.rule=Host(`drawdb-api.blabla.blabla`)"
      - "traefik.http.routers.drawdb-api.entrypoints=websecure"
      - "traefik.http.routers.drawdb-api.tls.certresolver=myresolver"
      - "traefik.http.services.drawdb-api.loadbalancer.server.port=5000"
    networks:
      - private_secured_network
    
networks:
  private_secured_network:
    external: true

I'm guessing that, after looking at the code, maybe the issue is with this parameter? VITE_BACKEND_URL=https://drawdb-api.blabla.blabla?

Did I miss anything?

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