mirror of https://gitlab.crans.org/nounous/nixos
Ajout de la conf mail
parent
bea0b48110
commit
d6b3f7791e
|
@ -6,6 +6,7 @@
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
../../../modules
|
../../../modules
|
||||||
|
../../../modules/crans/nullmailer.nix
|
||||||
../../../modules/services/mediawiki.nix
|
../../../modules/services/mediawiki.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -23,15 +23,42 @@ in
|
||||||
passwordFile = config.age.secrets.mediawiki-admin-passwd.path;
|
passwordFile = config.age.secrets.mediawiki-admin-passwd.path;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Server Settings
|
# Server settings
|
||||||
$wgFavicon = 'https://www.crans.org/images/favicon.ico';
|
$wgFavicon = 'https://www.crans.org/images/favicon.ico';
|
||||||
$wgLogo = 'https://www.crans.org/images/crans.svg';
|
$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';
|
$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';
|
$wgDefaultSkin = 'citizen';
|
||||||
|
$wgCitizenThemeColor = '#AD1F1F';
|
||||||
|
$wgCitizenEnableARFonts = true;
|
||||||
|
$wgCitizenEnableCJKFonts = true;
|
||||||
|
|
||||||
$wgLanguageCode = 'fr';
|
$wgLanguageCode = 'fr';
|
||||||
|
|
||||||
|
@ -40,6 +67,12 @@ in
|
||||||
|
|
||||||
# Extensions
|
# Extensions
|
||||||
$wgWikiEditorRealtimePreview = true;
|
$wgWikiEditorRealtimePreview = true;
|
||||||
|
|
||||||
|
# Debug
|
||||||
|
# $wgShowExceptionDetails = true;
|
||||||
|
$wgDebugToolbar = true;
|
||||||
|
# $wgShowDebug = true;
|
||||||
|
# $wgDevelopmentWarnings = true;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
skins = {
|
skins = {
|
||||||
|
|
Loading…
Reference in New Issue