@baris can you change the code so that the plugin doesn't look for keywords in the url?
I think it is not checking URLs.
If you're on SSL and your users embed non-secure images, your users will see a broken lock near the address bar. This simple plugin converts all embedded http images to https.
npm install nodebb-plugin-secure-images
Get it on GitHub
I'm going to gravedig a two-year-old topic to tell you how useful this is. I install this on every single NodeBB instance I set up.
Ha. First plugin I've ever written that withstood the test of time, apparently
(Most of them go out of date in 2 months, let alone 2 years)
Its like an ancient relic has has returned back onto earth. And somewhat in working condition xD
Updated for 0.9.x
Pon the download. Didn't even know this existed and was looking at doing this manually. Like a peasant.
What is the difference between this plugin and nodebb-plugin-camo?
This plugin replaces any image url using http with https. However, if the image host is not secure, the image will simply not show.
nodebb-plugin-camo is a secure proxy server. It converts http image urls and serves them through the proxy. This means that even if the original image host is not secure, the image will still appear.
The camo one is badass