LocalSettings

来自ling
(重定向自LocalSettings.php
跳转至: 导航搜索
tee /alidata/dockerdata/mediawiki/LocalSettings.php <<-'EOF'
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename = "ling";
$wgMetaNamespace = "Ling";

$wgScriptPath = "";
$wgScriptExtension = ".php";

$wgServer = "https://wiki.ling2.cn";

$wgStylePath = "$wgScriptPath/skins";

$wgLogo = "$wgScriptPath/images/wiki.jpg";

$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO


$wgEmergencyContact = "wiki@ling2.cn";
$wgPasswordSender = "wiki@ling2.cn";

$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype = "mysql";
$wgDBserver = "mysql";
$wgDBname = "wikipro";
$wgDBuser = "root";
$wgDBpassword = "Wb19831010!";

# MySQL specific settings
$wgDBprefix = "wiki_";

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";

# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = true;

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

$wgUseInstantCommons = false;

$wgShellLocale = "C.UTF-8";

#$wgHashedUploadDirectory = false;


#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "zh-cn";

$wgSecretKey = "3a48dcf43fab40af7177fb08e4468a0aba9bdf6e5354a45a9cdaeba0d93a52f9";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "74220bc59fb47ce5";

$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";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";

# Enabled skins.
# The following skins were automatically enabled:

wfLoadSkin( 'Vector' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'CologneBlue' );


# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension( 'Cite' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'Poem' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'WikiEditor' );
wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension( 'Interwiki' );
wfLoadExtension( 'LocalisationUpdate.php' );
wfLoadExtension( 'PdfHandler.php' );
wfLoadExtension( 'Renameuser.php' );
wfLoadExtension( 'SpamBlacklist.php' );
wfLoadExtension( 'TitleBlacklist.php' );


# End of automatically generated settings.
# Add more configuration options below.

$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg','doc','pdf','xls','mpp','ppt','dot');
#$wgUploadDirectory="/var/www/html/images";

#$wgUploadDirectory="/alidata/www/wikidata";
$wgHashedUploadDirectory = true;
$wgUseSharedUploads= true;
$wgHashedSharedUploadDirectory=false;
$wgExternalLinkTarget = '_blank';


#$wgMainCacheType = CACHE_NONE;
#$wgShowExceptionDetails=true;


$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['*' ]['read'] = true;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['user' ]['createaccount'] = true;
$wgGroupPermissions['user' ]['edit'] = true;

$wgLocalisationUpdateDirectory = "$IP/cache";
EOF