]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb
Enable regular dumps of the main wiki
[chef.git] / cookbooks / wiki / templates / default / mw-ext-Scribunto.inc.php.erb
index 2d974f55f55d6b01759810d1b6bc98e8d4887592..589817a085f8e0f758fc4246f75f75e189a0bb28 100644 (file)
@@ -3,6 +3,17 @@
 
 wfLoadExtension('Scribunto');
 
 
 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;
 
 // Enable syntax highlighting
 $wgScribuntoUseGeSHi = true;