forked from Drift/pvv-nixos-config
bekkalokk/mediawiki: misc configuration
This commit is contained in:
parent
7c3ff2068d
commit
868764e0cd
|
@ -135,10 +135,25 @@ in {
|
||||||
$wgEmergencyContact = "${cfg.passwordSender}";
|
$wgEmergencyContact = "${cfg.passwordSender}";
|
||||||
$wgUseTeX = false;
|
$wgUseTeX = false;
|
||||||
$wgLocalInterwiki = $wgSitename;
|
$wgLocalInterwiki = $wgSitename;
|
||||||
|
# Fix https://github.com/NixOS/nixpkgs/issues/183097
|
||||||
|
$wgDBserver = "${toString cfg.database.host}";
|
||||||
|
$wgAllowCopyUploads = true;
|
||||||
|
|
||||||
# SimpleSAML
|
# Misc program paths
|
||||||
|
$wgFFmpegLocation = '${pkgs.ffmpeg}/bin/ffmpeg';
|
||||||
|
$wgExiftool = '${pkgs.exiftool}/bin/exiftool';
|
||||||
|
$wgExiv2Command = '${pkgs.exiv2}/bin/exiv2';
|
||||||
|
# See https://gist.github.com/sergejmueller/088dce028b6dd120a16e
|
||||||
|
$wgJpegTran = '${pkgs.mozjpeg}/bin/jpegtran';
|
||||||
|
$wgGitBin = '${pkgs.git}/bin/git';
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
$wgShowExceptionDetails = false;
|
||||||
|
$wgShowIPinHeader = false;
|
||||||
|
|
||||||
|
# EXT:{SimpleSAML,PluggableAuth}
|
||||||
$wgSimpleSAMLphp_InstallDir = "${simplesamlphp}/share/php/simplesamlphp/";
|
$wgSimpleSAMLphp_InstallDir = "${simplesamlphp}/share/php/simplesamlphp/";
|
||||||
$wgPluggableAuth_Config['Log in using my SAML'] = [
|
$wgPluggableAuth_Config['Log in using SAML'] = [
|
||||||
'plugin' => 'SimpleSAMLphp',
|
'plugin' => 'SimpleSAMLphp',
|
||||||
'data' => [
|
'data' => [
|
||||||
'authSourceId' => 'default-sp',
|
'authSourceId' => 'default-sp',
|
||||||
|
@ -148,12 +163,12 @@ in {
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
# Debugging
|
# EXT:Scribunto
|
||||||
$wgShowExceptionDetails = false;
|
$wgScribuntoDefaultEngine = 'luastandalone';
|
||||||
$wgShowIPinHeader = false;
|
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '${pkgs.lua}/bin';
|
||||||
|
|
||||||
# Fix https://github.com/NixOS/nixpkgs/issues/183097
|
# EXT:WikiEditor
|
||||||
$wgDBserver = "${toString cfg.database.host}";
|
$wgWikiEditorRealtimePreview = true;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue