OK, Misterms got an error. But, you said it needs to be added. What do I add? The lonk you showed has 3 examples of the config:
$wgVirtualRestConfig = [
'modules' => [],
'global' => [
# Timeout in seconds
'timeout' => 360,
# 'domain' is set to $wgCanonicalServer in Setup.php since MediaWiki 1.26
'forwardCookies' => false,
'HTTPProxy' => null,
],
];
Parsoid
These are the default values when Parsoid is registered as a REST service, used when some keys are not defined.
$wgVirtualRestConfig['modules']['parsoid'] = [
// URL to the Parsoid instance - use port 8142 if you use the Debian package - the parameter 'URL' was first used but is now deprecated (string)
'url' => 'http://localhost:8000/',
// Parsoid "domain" (string, optional) - MediaWiki >= 1.26
'domain' => 'localhost',
// Parsoid "prefix" (string, optional) - deprecated since MediaWiki 1.26, use 'domain'
'prefix' => 'localhost',
// Forward cookies in the case of private wikis (string or false, optional)
'forwardCookies' => false,
// request timeout in seconds (integer or null, optional)
'timeout' => null,
// Parsoid HTTP proxy (string or null, optional)
'HTTPProxy' => null,
// whether to parse URL as if they were meant for RESTBase (boolean or null, optional)
'restbaseCompat' => null,
];
RESTBase
These are the default values when a RESTBase service is registered, used when some keys are not defined.
$wgVirtualRestConfig['modules']['restbase'] = [
// RESTBase server URL (string)
'url' => 'http://localhost:7231/',
// Wiki domain to use (string)
'domain' => 'localhost',
// request timeout in seconds (integer or null, optional)
'timeout' => 100,
// cookies to forward to RESTBase/Parsoid (string or false, optional)
'forwardCookies' => false,
// HTTP proxy to use (string or null, optional)
'HTTPProxy' => null,
// whether to parse URL as if they were meant for Parsoid (boolean, optional)
'parsoidCompat' => false,
// whether to append the domain to the url
'fixedUrl' => false,
];
Which one do I use (or a mix of them all?), and are there things to config for my server?
Misterm used another variation as well. What does a newbie mediawiki guy to do/use?
Thanks