[BUG] Impossible to share (self hosted DrawDB)
Hi all,
Thanks for this amazing project <3
Identical issue
This issue here https://github.com/drawdb-io/drawdb/issues/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?
any errors that youre getting? is the server running properly?
any errors that youre getting? is the server running properly?
In the first message, there's the error message I get, I put here again:
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"
Also, it seems that this feature is not even functioning on the official DrawDB website :')
aws is down :')
regarding the self hosting issue make sure the VITE_BACKEND_URL env gets set correctly
aws is down :')
regarding the self hosting issue make sure the VITE_BACKEND_URL env gets set correctly
Thanks for your reply
Yep yep, VITE_BACKEND_URL is set correctly 🤷
Side note and just to be sure about this feature: the share button, seems to generate a script of the current drawing and uses Github Gist to share it, did I get this correctly?
try passing the VITE_BACKEND_URL as an ARG
yep, sharing creates gists
adb shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh