1
0
Fork 0

bekkalokk/mediawiki: misc configuration

This commit is contained in:
Oystein Kristoffer Tveit 2024-07-10 19:04:55 +02:00
parent 7c3ff2068d
commit 868764e0cd
1 changed files with 22 additions and 7 deletions

View File

@ -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;
''; '';
}; };