jgraph / docker-drawio

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

Publishing or exporting generates link to viewer.diagrams.net #12

Closed rinnaz closed 4 years ago

rinnaz commented 4 years ago

Publishing link or exporting a diagram by URL leads to this:

image

Is there a way to define service root URL somehow?

rinnaz commented 4 years ago

Tried adding these lines to PreConfig.js and restarting docker container, still no success.

window.DRAWIO_BASE_URL = 'http://server-url/draw'; 
window.DRAWIO_VIEWER_URL = 'http://server-url/draw'; 
urlParams['base']='http://server-url/draw';
urlParams['sync'] = 'none';
rinnaz commented 4 years ago

So it seems that I've managed to figure it out. Lines that need to be added to PreConfig.js are

window.DRAWIO_BASE_URL = 'http(s)://<your-host-url>';
window.DRAWIO_LIGHTBOX_URL = 'http(s)://<your-host-url>';
rinnaz commented 3 years ago

No longer works, as PreConfig.js is being rewritten at start.