X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/282da5b385d0858ba1159a9b2703e22a815f3d27..688d76785983dce5093e2eab5fd5244358113a81:/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;