aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/templates/etc
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/mw-backend/templates/etc')
-rw-r--r--ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j217
1 files changed, 14 insertions, 3 deletions
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);