X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/1b772d6a33c4776ab4800f1b85db2f20dfbf88b5..a1780627367305e7bd8987ad71fec090cda8743f:/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 2d974f55f..589817a08 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb @@ -3,6 +3,17 @@ 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;