diff --git a/docs/modules/setup/pages/configuration.adoc b/docs/modules/setup/pages/configuration.adoc index a4efc07fe..bc9362104 100644 --- a/docs/modules/setup/pages/configuration.adoc +++ b/docs/modules/setup/pages/configuration.adoc @@ -218,6 +218,14 @@ TIP: Keep in mind that browsers also have a URI limit on `` tags. Most modern browsers https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers/417184#417184[support a URI length greater than 64000] on `` tags but this value is probably a bit excessive. We recommend to use a maximum length that's not greater than 8192 and not greater than 5120 if you are supporting IE 11. +== Excalidraw static assets + +By default, Excalidraw loads assets from a public CDN (https://unpkg.com). + +It's possible to change this behavior by setting the `KROKI_EXCALIDRAW_ASSET_PATH` environment variable, which is empty by default. + +More information about Excalidraw' static assets can be found here: https://docs.excalidraw.com/docs/@excalidraw/excalidraw/installation + == Enabling SSL on the server By default, SSL/TLS is not enabled on the server but you can enable it by setting `KROKI_SSL` environment variable to `true`. diff --git a/excalidraw/Dockerfile b/excalidraw/Dockerfile index 238304ffc..854881014 100644 --- a/excalidraw/Dockerfile +++ b/excalidraw/Dockerfile @@ -12,6 +12,7 @@ WORKDIR /usr/local/kroki/ RUN mkdir -p /usr/local/kroki/node && chown kroki:kroki -R /usr/local/kroki ENV KROKI_EXCALIDRAW_PAGE_URL=file:///usr/local/kroki/assets/index.html +ENV KROKI_EXCALIDRAW_ASSET_PATH= ENV PUPPETEER_EXECUTABLE_PATH=/usr/lib/chromium/chrome #ENV DEBUG="puppeteer:*" ENV LEVEL="info" diff --git a/excalidraw/assets/index.html b/excalidraw/assets/index.html index 360d73f92..0a465648f 100644 --- a/excalidraw/assets/index.html +++ b/excalidraw/assets/index.html @@ -3,6 +3,5 @@
-