From 13b55e2fe294ebe330122c4fbf92cf02cd4206c2 Mon Sep 17 00:00:00 2001 From: Maurice Debray Date: Fri, 11 Mar 2022 12:51:22 +0100 Subject: [PATCH] configuration --- hosts/hackens-org/wiki.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/hosts/hackens-org/wiki.nix b/hosts/hackens-org/wiki.nix index 1f35e09..52e5f06 100644 --- a/hosts/hackens-org/wiki.nix +++ b/hosts/hackens-org/wiki.nix @@ -10,19 +10,25 @@ $conf['start'] = 'accueil'; $conf['lang'] = 'fr'; $conf['template'] = 'bootstrap3'; - $conf['license'] = '0'; - $conf['breadcrumbs'] = 0; - $conf['htmlok'] = 1; + $conf['license'] = 'cc-by-sa'; + $conf['breadcrumbs'] = 0; # On s'en fiche de l'historique des pages visitées + $conf['youarehere'] = true; # Par contre on veut notre position dans la hiérarchie du site + # On veut que les liens externes s'ouvrent dans de nouveaux onglets + $conf['target'] = array( + 'extern' => '_tab' + ); + $conf['htmlok'] = 1; # On peut mettre du html dans les pages $conf['sitemap'] = 7; $conf['rss_type'] = 'rss2'; - $conf['userewrite'] = '1'; + $conf['userewrite'] = 1; # Important, sinon on casse tout avec les règles nginx définies par le module nixos $conf['useslash'] = 1; - $conf['plugin']['tokenbucketauth']['tba_send_mail'] = 'hackens@clipper.ens.fr'; + $conf['plugin']['tokenbucketauth']['tba_send_mail'] = 'hackens@clipper.ens.fr'; # Ban auto des IPs qui brute-forcent + $conf['htmlmail'] = 0; # On envoie les mails en plain text + $conf['useacl'] = 1; # On ne veut pas que n'importe qui écrive ''; pluginsConfig = '' $plugins['authmysql'] = 0; - $plugins['syntaxhighlighter3'] = 0; $plugins['popularity'] = 0; $plugins['authpgsql'] = 0; $plugins['authpdo'] = 0;