aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/templates/etc
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-02-26 20:33:35 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-02-26 20:33:35 +0100
commit9e31be4a459959ced8ca47f88360f63088775945 (patch)
tree71fdb3781f4a9c44e59bdba09bc1bb18b9b96a86 /ansible/roles/mw-backend/templates/etc
parent41022b009d62f7da7914762548b25a02f61e42cb (diff)
downloadinfra-9e31be4a459959ced8ca47f88360f63088775945.tar.gz
infra-9e31be4a459959ced8ca47f88360f63088775945.tar.bz2
infra-9e31be4a459959ced8ca47f88360f63088775945.tar.xz
infra-9e31be4a459959ced8ca47f88360f63088775945.zip
wip
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);