docker-drawio icon indicating copy to clipboard operation
docker-drawio copied to clipboard

Custom plugins in self-contained drawio?

Open vlsav opened this issue 1 year ago • 2 comments

Hello! Is it possible to enable custom plugins in self-contained draw-io? I've checked sources, seems there is window.ALLOW_CUSTOM_PLUGINS variable, but it is not clear if it is possible to enable it and if it will allow custom plugins in self-contained draw-io? There is nothing about it in docker-entrypoint.sh

vlsav avatar Jul 30 '24 12:07 vlsav

hello, i have the same question. Has anyone managed to install custom plugins on selfhosted drawio?

shahram7 avatar Sep 26 '24 07:09 shahram7

by modification of main/docker-entrypoint.sh by adding into PreConfig.js: window.ALLOW_CUSTOM_PLUGINS = true it is preferable if it will be added into baseline docker-entrypoint.sh, with additional ENV variable to make such option configurable. But I didn't find the way to raise such PR.

vlsav avatar Sep 27 '24 08:09 vlsav

I'm using this option as an appendix to DRAWIO_CONFIG (injection attack yes). Seems working.

kayanme avatar May 29 '25 13:05 kayanme