hainich/lantifa: attempt visualeditor fix

This commit is contained in:
hexchen 2021-01-13 17:18:16 +00:00
parent ea80c4fe41
commit 548188be4d

View file

@ -10,6 +10,7 @@ in {
localAddress6 = "fd00::42:15";
config = {config, pkgs, ... }: {
networking.hosts."fd00::42:14" = [ "wiki.lantifa.org" ];
networking.firewall.allowedTCPPorts = [ 4422 ];
users.users.mediawiki.extraGroups = [ "keys" ];
@ -22,6 +23,8 @@ in {
extraConfig = ''require_once('/var/lib/mediawiki/plugins/WikiDB/WikiDB.php');
$wgExtraNamespaces = array( 100 => "Table", 101 => "Table_Talk",);
$wgWikiDBNamespaces = 100;
$wgGroupPermissions['user']['writeapi'] = true;
$wgDefaultUserOptions['visualeditor-enable'] = 1;
'';
extensions = {
@ -29,6 +32,7 @@ in {
url = "https://extdist.wmflabs.org/dist/extensions/TemplateData-REL1_31-0bf2ec0.tar.gz";
sha256 = ''1kygi069jqlrkpwxwf2m5467k02wmbj38vzp796rl827ajrzxfip'';
};
VisualEditor = null;
};
virtualHost = {