jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.49k stars 361 forks source link

Changing the Export URL for self-hosted Draw.io #58

Closed RaylynYu closed 2 years ago

RaylynYu commented 2 years ago

I am very new to Docker and I am trying to set up draw.io.

My question is, how do I configure the self-hosted draw.io instance in a way where the export option is not redirected to a diagrams.net URL?

I’ve installed draw.io using the docker image on GitHub and it runs it successfully using: sudo docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 jgraph/drawio

I have no problem accessing the site locally by navigating to: https://localhost:8443/?offline=1 But when I go to Export as.. > URL , I see that the link that is created is for https://viewer.diagrams.net/

image

I’ve tried editing the PreConfig.js file as so: image

But nothing changed, and I'm not sure it is the right PreConfig.js file. I wasn't able to find the one mentioned in the GitHub README file ("next to Dockerfile in debian or alpine folders").

This PreConfig.js file was located in: image

Background info on my system: Testing this on a CentOS 7 VM.

Please let me know if you need more information to help me with my question.
Thank you in advance.

jensschaerer commented 2 years ago

Same here. Any help for this issue? Browsed #20 and #1855 already but there seems some more issues regarding viewer and lightbox