90 lines
1.8 KiB
PHP
90 lines
1.8 KiB
PHP
<?php
|
|
|
|
//Debug
|
|
|
|
ini_set("display_errors", "off");
|
|
|
|
$wgDeprecationReleaseLimit = '1.x';
|
|
|
|
$wgShowDebug = false;
|
|
$wgDevelopmentWarnings = false;
|
|
|
|
//Paths
|
|
|
|
$wgScriptPath = "/w";
|
|
$wgArticlePath = "/wiki/$1";
|
|
$wgServer = "https://$mtWikiName";
|
|
$wgResourceBasePath = $wgScriptPath;
|
|
|
|
$wgUploadDirectory = "$mtDataPath/upload/$mtWikiName/";
|
|
$wgCacheDirectory = "$mtDataPath/cache/$mtWikiName/";
|
|
|
|
$wgImageMagickConvertCommand = "/usr/bin/convert";
|
|
$wgDiff3 = "/usr/bin/diff3";
|
|
|
|
//Branding
|
|
|
|
//$wgAppleTouchIcon = "https://cdn." . $mtWikiName . "/wiki.png";
|
|
$wgFavicon = "/favicon.ico";
|
|
|
|
//Cache
|
|
|
|
#$wgUseCdn = true;
|
|
#$wgCdnMaxAge = 2592000;
|
|
|
|
$wgMainCacheType = CACHE_MEMCACHED;
|
|
$wgMemCachedServers = [ 'unix:///sock_path/memcached.sock' ];
|
|
|
|
$wgFileCacheDirectory = "$mtDataPath/filecache/$mtWikiName/";
|
|
$wgUseFileCache = false;
|
|
|
|
//Email
|
|
|
|
$wgSMTP = [
|
|
'host' => '',
|
|
'IDHost' => '',
|
|
'port' => ,
|
|
'username' => '',
|
|
'password' => '',
|
|
'auth' => true
|
|
];
|
|
|
|
$wgEnableEmail = true;
|
|
$wgEnableUserEmail = true;
|
|
|
|
$wgEnotifUserTalk = true;
|
|
$wgEnotifWatchlist = true;
|
|
$wgEmailAuthentication = true;
|
|
|
|
$wgPasswordSender = "noreply@$mtWikiName";
|
|
|
|
//Database
|
|
|
|
$wgDBname = $mtUsername . $mtDbSuffix;
|
|
$wgDBuser = $mtUsername;
|
|
$wgDBtype = "mysql";
|
|
$wgDBserver = "";
|
|
$wgDBprefix = "";
|
|
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
|
|
|
|
//Variables
|
|
|
|
$wgUseImageMagick = true;
|
|
$wgLocaltimezone = "Etc/UTC";
|
|
|
|
$wgMaxShellTime = 300;
|
|
|
|
$wgActions['mcrundo'] = false;
|
|
$wgActions['mcrrestore'] = false;
|
|
$wgWhitelistRead = [];
|
|
$wgWhitelistReadRegexp = [];
|
|
|
|
//Footer Links
|
|
|
|
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
|
|
if ( $key === 'places' ) {
|
|
$footerlinks['cookies'] = $skin->footerLink( 'cookies', 'cookiepage' );
|
|
};
|
|
};
|
|
|