mirror of https://gitlab.crans.org/nounous/nixos
Ajout de quelques extensions
parent
035b6780ff
commit
a1e70f8574
|
@ -9,18 +9,7 @@
|
||||||
services.mediawiki = {
|
services.mediawiki = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
httpd.virtualHost = {
|
name = "Wiki Crans";
|
||||||
hostName = "mediakiwi.crans.org";
|
|
||||||
adminAddr = "root@crans.org";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
ip = "127.0.0.1";
|
|
||||||
port = 8080;
|
|
||||||
ssl = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nginx.hostName = "mediakiwi.crans.org";
|
nginx.hostName = "mediakiwi.crans.org";
|
||||||
|
|
||||||
|
@ -29,6 +18,10 @@
|
||||||
passwordFile = config.age.secrets.mediawiki-admin-passwd.path;
|
passwordFile = config.age.secrets.mediawiki-admin-passwd.path;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# Server Settings
|
||||||
|
$wgFavicon = 'https://www.crans.org/images/favicon.ico';
|
||||||
|
$wgLogo = 'https://www.crans.org/images/crans.svg';
|
||||||
|
|
||||||
# contact info
|
# contact info
|
||||||
$wgEmergencyContact = 'contact@crans.org';
|
$wgEmergencyContact = 'contact@crans.org';
|
||||||
|
|
||||||
|
@ -39,6 +32,9 @@
|
||||||
|
|
||||||
# Disable anonymous editing
|
# Disable anonymous editing
|
||||||
$wgGroupPermissions['*']['edit'] = false;
|
$wgGroupPermissions['*']['edit'] = false;
|
||||||
|
|
||||||
|
# Extensions
|
||||||
|
$wgWikiEditorRealtimePreview = true;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
skins = {
|
skins = {
|
||||||
|
@ -51,8 +47,22 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions = {
|
extensions = {
|
||||||
# activate visual editor
|
# Enables embedded extensions
|
||||||
|
Math = null;
|
||||||
|
MultimediaViewer = null;
|
||||||
|
SyntaxHighlight_GeSHi = null;
|
||||||
VisualEditor = null;
|
VisualEditor = null;
|
||||||
|
WikiEditor = null;
|
||||||
|
|
||||||
|
# Popups
|
||||||
|
TextExtracts = null;
|
||||||
|
PageImages = null;
|
||||||
|
Popups = pkgs.fetchFromGitHub {
|
||||||
|
owner = "wikimedia";
|
||||||
|
repo = "mediawiki-extensions-Popups";
|
||||||
|
tag = "REL1_38";
|
||||||
|
sha256 = "sha256-iguedL3pih3XnnAMt/kV+PVCu7MRCuKXXI8zGu9tjZw=";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue