wikmd icon indicating copy to clipboard operation
wikmd copied to clipboard

Stop using JS from CDNs and host locally instead

Open kura opened this issue 3 years ago • 2 comments

I don't really like that an app I am hosting myself on my network is requesting JS files from an external CDN, even with SRI. Can those JS files just be included in the repo and hosted locally instead?

kura avatar Jul 05 '22 18:07 kura

I'm trying to just link to the files as much as possible instead of including them. Maybe there is a way to download them just at installing wikmd, but I have not looked into that yet. Maybe a install script would do the trick.

Linbreux avatar Jul 09 '22 08:07 Linbreux

Something like that would be good, yeah. Or a config option that switches into a self-contained mode, when the process starts it can see that option is enabled, check the local filesystem for a local copy of the external libraries and if they don't exist, download them, switching to local filesystem mode in the templates too.

kura avatar Jul 09 '22 09:07 kura

Hi @kura, @Oliver-Hanikel added the functionality you suggested. I'll close this issue for now.

Linbreux avatar Aug 25 '22 17:08 Linbreux

Perfect, thanks both!

kura avatar Aug 25 '22 17:08 kura