<?php
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
$wgSitename = "My Website Name";
$wgMetaNamespace = "My_Website_Name";
$wgScriptPath = "/mediawikiNEW";
$wgServer = "";
$wgResourceBasePath = $wgScriptPath;
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
'icon' => "$wgResourceBasePath/resources/assets/change-your-logo-icon.svg",
];
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "";
$wgPasswordSender = "";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "myDatabse";
$wgDBuser = "mediaUser";
$wgDBpassword = "Password";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Shared database table
# This has no effect unless $wgSharedDB is also set.
$wgSharedTables[] = "actor";
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
/* $wgMainCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB; */
$wgMemCachedServers = [];
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgUseInstantCommons = false;
$wgPingback = true;
$wgLanguageCode = "en";
# Time zone
$wgLocaltimezone = "America/New_York";
$wgSecretKey = "SercretKey";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "UpgradeKey";
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, e.g. 'vector' or 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# visual editor
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgHiddenPrefs[] = 'visualeditor-enable';
# create page
wfLoadExtension( 'CreatePageUw' );
$wgCreatePageUwUseVE = true;
### Azure directory extensions or config
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
#PluggableAuth
wfLoadExtension( 'PluggableAuth' );
$wgPluggableAuth_EnableAutoLogin = false;
$wgPluggableAuth_EnableLocalLogin = false; # if this set to true allows local login without azure auth
$wgPluggableAuth_EnableLocalProperties = false;
$wgPluggableAuth_EnableFastLogout =true;
$wgPluggableAuth_ButtonLabelMessage = 'Login';
$wgPluggableAuth_Class = 'OpenIDConnect';
# OpenIDConnect config
wfLoadExtension( 'OpenIDConnect' );
$wgPluggableAuth_Config[] = [
"My Login" => [
'plugin' => 'OpenIDConnect',
'data' => [
'providerURL' => '',
'clientID' => 'ID',
'clientsecret' => 'secret'
],
'scope' => [ 'openid', 'profile', 'email' ]
]
];
$wgOpenIDConnect_UseRealNameAsUserName = true;
# ShortURL Config
wfLoadExtension( 'ShortUrl' );
/* $wgShortUrlTemplate = '/mediawikiNEW/wiki/$1'; */
$wgArticlePath = "/mediawikiNEW/$1";