Since Parsoid was accessing the MW API over port 9000 without SSL,
$wgServer was set like "http://<my-domain>:9000" for requests from Parsoid.
To fix this I added the following to LocalSettings.php to adjust $wgServer
if requests are originating from within the server:
if ( $_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR'] ) {
$wgServer = preg_replace(
'/^http:\/\/([a-zA-Z\d-\.]+):9000/',
'https://$1',
$wgServer
);
}
Please note I'm on MW 1.25.x and REL1_25 branches of all extensions
(including VE). For Parsoid I'm using commit ba26a55 (because that's the
latest that seems to work with REL1_25).
On Fri, Feb 19, 2016 at 6:53 PM, Arlo Breault <[email protected]>
wrote:
>
> > Parsoid and VisualEditor are working great with this setup for everything
> > except images. When I first add an image (VE --> Insert --> Media) it
> works
> > as expected. The image displays and is configurable. When I save the page
> > everything functions properly. However, when I click edit again the image
> > does not show. Shortly thereafter the request for the image times out
> and I
> > get the following error in the browser console:
> >
> > GET http://
> <my-domain>:9000/bme/img_auth.php/thumb/6/66/BME_sign.jpg/400px-BME_sign.jpg
> > net::ERR_CONNECTION_TIMED_OUT
> >
> > Note that it's attempting to load the image over port 9000, not 443.
> >
> > Is there a way to tell images to load over the standard entry point?
>
> Parsoid should be producing links relative to the base element,
>
> https://github.com/wikimedia/parsoid/blob/master/lib/wt2html/DOMPostProcessor.js#L321
> which, as I understood, VE on the page ignores.
>
> Can you provide the wikitext that got saved and the subsequent
> html it's producing?
>
> You might want to forgo the suggestion from the troubleshooting page
> and just set `parsoidConfig.strictSSL = false;`,
>
> https://github.com/wikimedia/parsoid/blob/master/localsettings.js.example#L100-L102
>
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l