diff --git a/hosts/vm/mediakiwi/mediawiki.nix b/hosts/vm/mediakiwi/mediawiki.nix index 94043ea..5d852f5 100644 --- a/hosts/vm/mediakiwi/mediawiki.nix +++ b/hosts/vm/mediakiwi/mediawiki.nix @@ -87,25 +87,22 @@ in # E-mail settings $wgEnableEmail = true; - # $wgSMTP = [ - # 'host' => 'smtp.adm.crans.org', - # 'IDHost' => 'crans.org', - # 'localhost' => 'crans.org', - # 'port' => , - # 'auth' => false, - # # 'username' => , - # # 'password' => , - # ]; + $wgSMTP = [ + 'host' => 'smtp.adm.crans.org', + 'IDHost' => 'crans.org', + 'localhost' => 'crans.org', + 'port' => 25, + 'auth' => false, + ]; $wgPasswordSender = 'root@crans.org'; $wgEmergencyContact = 'contact@crans.org'; $wgNoReplyAddress = 'root@crans.org'; $wgEnableUserEmail = false; - # $wgEnableSpecialMute = true; $wgAllowHTMLEmail = true; - $wgEnotifUseRealName = false; - $wgEnotifFromEditor = false; - $wgEnotifRevealEditorAddress = false; + $wgEnotifUseRealName = true; # On active les noms réels pour plus de lisibilité avec les comptes note + $wgEnotifFromEditor = false; # On ne se fait pas passer par l’utilisateurice + $wgEnotifRevealEditorAddress = false; # Pas de champ répondre avec l’adresse mail de l’utilisateurice $wgEnotifUserTalk = true; $wgEnotifMinorEdits = true; $wgEnotifWatchlist = true; @@ -146,6 +143,7 @@ in $wgGroupPermissions['*']['edit'] = false; # Restrict edition for anonymous user $wgGroupPermissions['*']['createaccount'] = false; # Restrict the creation of account to sysop only $wgGroupPermissions['*']['autocreateaccount'] = true; # Création de comptes depuis LDAP et Note mais pas local + $wgGroupPermissions['*']['delete'] = true; # Création de comptes depuis LDAP et Note mais pas local $wgCategoryLockdownWhitelist = [ "Spécial:Connexion", "Spécial:Connexion/return", @@ -155,6 +153,7 @@ in "MediaWiki:Common.js" ]; $wgCategoryGroupLockdown["!user"]["read"] = [ "Page Publique" ]; # Restrict read for non-user (i.e. anonymous) on execpt for Page Publique + $wgFeed = false; # Pas de flux car ils ne sont pas authentifiés :(. # Extensions $wgWikiEditorRealtimePreview = true;