From 6c1dbc8319722572527eb2cd83d20044a47ef3e5 Mon Sep 17 00:00:00 2001 From: www-data Date: Sat, 28 Jun 2025 22:20:42 +0200 Subject: [PATCH] Configure secrets and email --- .gitignore | 3 +++ LocalSettings.php | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9cb9b661c77..29d28bdb314 100644 --- a/.gitignore +++ b/.gitignore @@ -92,6 +92,9 @@ Thumbs.db docker-compose.override.yml .env +# TechInc not public +secrets.php + # TechInc extensions extensions/AdminLinks extensions/BlueSpiceFoundation diff --git a/LocalSettings.php b/LocalSettings.php index 3e6b5a669b0..db754734a50 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -18,6 +18,9 @@ $_SERVER['SERVER_PORT'] = 443; ##################### CUSTOMIZE THESE SETTINGS TO YOUR NEED ################### +# Put some secrets outside the git repository +include 'secrets.php'; + ## Some site defaults $wgSitename = "Technologia Incognita"; $wgMetaNamespace = "Technologia_Incognita"; @@ -37,16 +40,27 @@ $wgDBuser = "techinc_wiki"; $wgDBpassword = "gFCS8t19xNEvdg52Sx51asGpr4RESbSH"; $wgDBprefix = ""; + +# Email settings $wgEmergencyContact = "wiki-noreply@techinc.nl"; $wgPasswordSender = "wiki-noreply@techinc.nl"; +$wgSMTP = [ + 'host' => 'ssl://mail.techinc.nl', + 'IDHost' => 'wiki.techinc.nl', + 'localhost' => 'wiki.techinc.nl', + 'port' => 465, + 'auth' => true, + 'username' => 'wiki', + 'password' => $emailPassword # In secrets.php +]; # tr -c -d '0123456789abcdef' /dev/null;echo -$wgSecretKey = ""; +# $wgSecretKey = ""; # In secrets.php # Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place # tr -c -d '0123456789abcdef' /dev/null;echo -$wgUpgradeKey = ""; +# $wgUpgradeKey = ""; # In secrets.php # Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1";