X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/282da5b385d0858ba1159a9b2703e22a815f3d27..d5f8a18658e100abeba9f8fcdf7d9e4cbcaea3a6:/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb diff --git a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb index 4c9eb99ad..589817a08 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb @@ -6,9 +6,14 @@ wfLoadExtension('Scribunto'); // Use standalone mode $wgScribuntoDefaultEngine = 'luastandalone'; +// Increase cpu limit (default=7) per https://www.mediawiki.org/wiki/Topic:S9y4s52ue722seam +// Documented in https://www.mediawiki.org/wiki/Extension:Scribunto#LuaStandalone +// Max running time in seconds +$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 15; + // Set path to lua interpreter $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; - + // Enable syntax highlighting $wgScribuntoUseGeSHi = true;