X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1b772d6a33c4776ab4800f1b85db2f20dfbf88b5..f351c6a2475050bcadfce28bdbe303eda9654059:/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb?ds=sidebyside 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;