Hello,
I just moved all images on my wiki to Amazon, for performance. Now I wonder what the best way is to change all thumb and image paths in the wiki. Browsing through the file related hooks I find no obvious candidate. For now I just do a replace in ParserAfterTidy, but that i quite ugly, and will sooner or later have a false positive. Surely there must be a better way?
/Leo
On 10/14/2013 04:35 AM, Leonard Wallentin wrote:
I just moved all images on my wiki to Amazon, for performance. Now I wonder what the best way is to change all thumb and image paths in the wiki. Browsing through the file related hooks I find no obvious candidate. For now I just do a replace in ParserAfterTidy, but that i quite ugly, and will sooner or later have a false positive. Surely there must be a better way?
Did you look at https://www.mediawiki.org/wiki/Extension:AWS or https://www.mediawiki.org/wiki/Extension:LocalS3Repo ?
Thank you for pointing me there!
Both those extensions seem to create their own File classes, and override all MW file handling. I have simply mounted S3 on my server (as described here: https://www.mediawiki.org/wiki/User:Chillum/Integration_with_S3), so I am looking for something much more simple; Simply modifying the images paths!
/Leo
2013/10/14 Mark A. Hershberger mah@everybody.org
On 10/14/2013 04:35 AM, Leonard Wallentin wrote:
I just moved all images on my wiki to Amazon, for performance. Now I
wonder
what the best way is to change all thumb and image paths in the wiki. Browsing through the file related hooks I find no obvious candidate. For now I just do a replace in ParserAfterTidy, but that i quite ugly, and
will
sooner or later have a false positive. Surely there must be a better way?
Did you look at https://www.mediawiki.org/wiki/Extension:AWS or https://www.mediawiki.org/wiki/Extension:LocalS3Repo ?
On Mon, Oct 14, 2013 at 2:47 PM, Leonard Wallentin leo.wallentin@gmail.comwrote:
I am looking for something much more simple; Simply modifying the images paths!
If you that's all you want, just change https://www.mediawiki.org/wiki/Manual:$wgUploadPath :-)
@Benjamin: Thanks a lot, that was exactly what I was looking for! Another reminder to always rtfm.... :)
@Jan: Sorry, I wasn't really clear. I have made /wiki/images a symlink to my virtual filesystem, but I wanted the paths to be rewritten to make use of Amazon Cloudfront as an image CDN.
/Leo
2013/10/15 Benjamin Lees emufarmers@gmail.com
On Mon, Oct 14, 2013 at 2:47 PM, Leonard Wallentin < leo.wallentin@gmail.com> wrote:
I am looking for something much more simple; Simply modifying the images paths!
If you that's all you want, just change https://www.mediawiki.org/wiki/Manual:$wgUploadPath :-)
mediawiki-l@lists.wikimedia.org