@cryptotaxi247 / infra / commits / 3a8a6974

Wiki: Enable the spam blacklist extension

Eelco Dolstra committed Nov 13, 2013 at 15:40 UTC 3a8a69740407c1e7d202ea79684ee513e23bef5e
1 file changed +12 -1
nixos-org/webserver.nix
+12 -1
@@ -89,6 +89,17 @@ let
89 ''
90 #$wgEmailConfirmToEdit = true;
91
92 + #$wgDebugLogFile = "/tmp/mediawiki_debug_log.txt";
93 +
94 + # Turn on the mass deletion feature.
95 + require_once("$IP/extensions/Nuke/Nuke.php");
96 +
97 + # Prevent pages with blacklisted links.
98 + require_once("$IP/extensions/SpamBlacklist/SpamBlacklist.php");
99 + $wgSpamBlacklistFiles = array(
100 + "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1"
101 + );
102 +
103 # Use a reCAPTCHA to prevent spam.
104 require_once("$IP/extensions/ConfirmEdit/ConfirmEdit.php");
105 require_once("$IP/extensions/ConfirmEdit/ReCaptcha.php");
@@ -257,7 +268,7 @@ in
268
269 systemd.services.mirror-tarballs =
270 { description = "Mirror Nixpkgs tarballs";
260 - path = [ config.environment.nix pkgs.curl pkgs.git ];
271 + path = [ config.nix.package pkgs.curl pkgs.git ];
272 #environment.DRY_RUN = "1";
273 environment.HYDRA_DISALLOW_UNFREE = "1";
274 environment.NIX_PATH = "nixpkgs=/home/tarball-mirror/nixpkgs";