Ajout de la conf mail

wiki
Lyes Saadi 2025-05-27 23:24:25 +02:00
parent bea0b48110
commit d6b3f7791e
No known key found for this signature in database
GPG Key ID: 55A1D803917CF39A
3 changed files with 53 additions and 3 deletions

View File

@ -6,6 +6,7 @@
./networking.nix
../../../modules
../../../modules/crans/nullmailer.nix
../../../modules/services/mediawiki.nix
];

View File

@ -0,0 +1,16 @@
{ ... }:
{
services.nullmailer = {
enable = true;
config = {
remotes = ''
smtp.adm.crans.org smtp
'';
adminaddr = "root@crans.org";
defaulthost = "crans.org";
allmailfrom = "root@crans.org";
};
};
}

View File

@ -23,15 +23,42 @@ in
passwordFile = config.age.secrets.mediawiki-admin-passwd.path;
extraConfig = ''
# Server Settings
# Server settings
$wgFavicon = 'https://www.crans.org/images/favicon.ico';
$wgLogo = 'https://www.crans.org/images/crans.svg';
# contact info
# E-mail settings
$wgEnableEmail = true;
# $wgSMTP = [
# 'host' => 'smtp.adm.crans.org',
# 'IDHost' => 'crans.org',
# 'localhost' => 'crans.org',
# 'port' => ,
# 'auth' => false,
# # 'username' => ,
# # 'password' => ,
# ];
$wgPasswordSender = 'root@crans.org';
$wgEmergencyContact = 'contact@crans.org';
$wgNoReplyAddress = 'root@crans.org';
$wgEnableUserEmail = true;
$wgEnableSpecialMute = true;
$wgAllowHTMLEmail = true;
$wgEnotifUseRealName = false;
$wgEnotifFromEditor = false;
$wgEnotifRevealEditorAddress = false;
$wgEnotifUserTalk = true;
$wgEnotifMinorEdits = true;
$wgEnotifWatchlist = true;
# Peut-être utilisé pour les Wikistes
$wgUsersNotifiedOnAllChanges = [];
# default theme
# Theme
$wgDefaultSkin = 'citizen';
$wgCitizenThemeColor = '#AD1F1F';
$wgCitizenEnableARFonts = true;
$wgCitizenEnableCJKFonts = true;
$wgLanguageCode = 'fr';
@ -40,6 +67,12 @@ in
# Extensions
$wgWikiEditorRealtimePreview = true;
# Debug
# $wgShowExceptionDetails = true;
$wgDebugToolbar = true;
# $wgShowDebug = true;
# $wgDevelopmentWarnings = true;
'';
skins = {