Closed rinnaz closed 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';
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>';
No longer works, as PreConfig.js is being rewritten at start.
Publishing link or exporting a diagram by URL leads to this:
Is there a way to define service root URL somehow?