mirror of https://gitlab.crans.org/nounous/nixos
Add svg support
parent
eb81239e4f
commit
0fcfe6da91
|
|
@ -1,4 +1,9 @@
|
||||||
{ lib, pkgs, config, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = pkgs.mediawiki.version;
|
version = pkgs.mediawiki.version;
|
||||||
|
|
@ -68,9 +73,10 @@ in
|
||||||
# Files and Uploads
|
# Files and Uploads
|
||||||
$wgMaxUploadSize = 512 * 1024 * 1024;
|
$wgMaxUploadSize = 512 * 1024 * 1024;
|
||||||
$wgUseImageMagick = true;
|
$wgUseImageMagick = true;
|
||||||
$wgImageMagickConvertCommand = '${ pkgs.imagemagick }/bin/convert';
|
$wgImageMagickConvertCommand = '${pkgs.imagemagick}/bin/convert';
|
||||||
$wgStrictFileExtensions = false;
|
$wgStrictFileExtensions = false;
|
||||||
$wgFileExtensions[] = 'pdf';
|
$wgFileExtensions[] = 'pdf';
|
||||||
|
$wgFileExtensions[] = 'svg';
|
||||||
|
|
||||||
# Limite mémoire, quand on fait de gros importi (9M de xml), le parser
|
# Limite mémoire, quand on fait de gros importi (9M de xml), le parser
|
||||||
# prends plus que 50M
|
# prends plus que 50M
|
||||||
|
|
@ -149,10 +155,10 @@ in
|
||||||
$wgCategoryGroupLockdown["!user"]["read"] = [ "Page Publique" ]; # Restrict read for non-user (i.e. anonymous) on execpt for Page Publique # Extensions
|
$wgCategoryGroupLockdown["!user"]["read"] = [ "Page Publique" ]; # Restrict read for non-user (i.e. anonymous) on execpt for Page Publique # Extensions
|
||||||
$wgWikiEditorRealtimePreview = true;
|
$wgWikiEditorRealtimePreview = true;
|
||||||
$wgCiteBookReferencing = true;
|
$wgCiteBookReferencing = true;
|
||||||
$wgPdfProcessor = '${ pkgs.ghostscript }/bin/gs';
|
$wgPdfProcessor = '${pkgs.ghostscript}/bin/gs';
|
||||||
$wgPdfPostProcessor = $wgImageMagickConvertCommand;
|
$wgPdfPostProcessor = $wgImageMagickConvertCommand;
|
||||||
$wgPdfInfo = '${ pkgs.poppler-utils }/bin/pdfinfo';
|
$wgPdfInfo = '${pkgs.poppler-utils}/bin/pdfinfo';
|
||||||
$wgPdftoText = '${ pkgs.poppler-utils }/bin/pdftotext';
|
$wgPdftoText = '${pkgs.poppler-utils}/bin/pdftotext';
|
||||||
$wgScribuntoDefaultEngine = 'luasandbox';
|
$wgScribuntoDefaultEngine = 'luasandbox';
|
||||||
|
|
||||||
# Custom Namespaces
|
# Custom Namespaces
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue