From 9e31be4a459959ced8ca47f88360f63088775945 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 26 Feb 2018 20:33:35 +0100 Subject: wip --- .../templates/etc/mediawiki/LocalSettings.php.j2 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'ansible/roles/mw-backend/templates/etc/mediawiki') diff --git a/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2 b/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2 index 999f64e..eb98896 100644 --- a/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2 +++ b/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2 @@ -87,7 +87,7 @@ $wgShellLocale = "en_US.utf8"; # Site language code, should be one of the list in ./languages/data/Names.php $wgLanguageCode = "en"; -$wgSecretKey = "275b35aba77711c862ef77f85fd4f5e6c98133edead6af6e5374fee7cba8f0df"; +$wgSecretKey = "{{ mediawiki_secrets.secret_key }}"; # Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1"; @@ -156,8 +156,19 @@ $wgFooterIcons['poweredby']['debian'] = [ # Add more configuration options below. $wgUseCategoryBrowser = true; -# https://www.mediawiki.org/wiki/Manual:$wgSMTP -$wgSMTP = array('host' => '10.0.3.1', 'auth' => false); + +// Define constants for my additional namespaces. +define("NS_CHIP", 3000); // This MUST be even. +define("NS_CHIP_TALK", 3001); // This MUST be the following odd integer. enableSemantics( 'trygvis.io' ); $smwgShowFactbox = SMW_FACTBOX_NONEMPTY; + +// Add "Chip" namespace +$wgExtraNamespaces[NS_CHIP] = "Chip"; +$wgExtraNamespaces[NS_CHIP_TALK] = "Chip_talk"; // Note underscores in the namespace name. +$wgContentNamespaces[] = NS_CHIP; +$smwgNamespacesWithSemanticLinks[NS_CHIP] = true; + +# https://www.mediawiki.org/wiki/Manual:$wgSMTP +$wgSMTP = array('host' => '10.0.3.1', 'auth' => false); -- cgit v1.2.3