461 lines
14 KiB
Django/Jinja
461 lines
14 KiB
Django/Jinja
<?php
|
|
# This file was automatically generated by the MediaWiki installer.
|
|
# If you make manual changes, please keep track in case you need to
|
|
# recreate them later.
|
|
#
|
|
# See includes/DefaultSettings.php for all configurable settings
|
|
# and their default values, but don't forget to make changes in _this_
|
|
# file, not there.
|
|
#error_reporting(1);
|
|
#session_start();
|
|
|
|
# If you customize your file layout, set $IP to the directory that contains
|
|
# the other MediaWiki files. It will be used as a base to locate files.
|
|
if( defined( 'MW_INSTALL_PATH' ) ) {
|
|
$IP = MW_INSTALL_PATH;
|
|
} else {
|
|
$IP = dirname( __FILE__ );
|
|
}
|
|
|
|
|
|
#$IP = '/usr/share/mediawiki';
|
|
$path = array( $IP, "$IP/includes", "$IP/languages" );
|
|
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
|
|
|
|
# Added for timeout testing
|
|
require_once( "includes/DefaultSettings.php" );
|
|
#$wgDebugLogFile = '/tmp/out.log';
|
|
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );
|
|
#require_once( "extensions/ConfirmEdit/FancyCaptcha.php" );
|
|
$wgCaptchaClass = 'SimpleCaptcha';
|
|
#$wgCaptchaClass = 'FancyCaptcha';
|
|
#$wgCaptchaDirectory = "/mnt/web/attachments/captchas";
|
|
#$wgCaptchaDirectoryLevels = 0;
|
|
#$wgCaptchaSecret = "{{ mediawikiCaptchaKey }}";
|
|
|
|
$wgRawHtml = false;
|
|
$wgProto = "https";
|
|
{% if env == "staging" %}
|
|
$wgServer = "https://stg.fedoraproject.org";
|
|
{% else %}
|
|
$wgServer = "https://fedoraproject.org";
|
|
{% endif %}
|
|
$wgCookieSecure = true;
|
|
$wgFeedDiffCutoff=32000;
|
|
|
|
|
|
# Caching Settings
|
|
$wgUseFileCache = false;
|
|
$wgFileCacheDirectory = '/var/cache/mediawiki/';
|
|
$wgShowIPinHeader = false;
|
|
$wgUseETag = true;
|
|
|
|
if ( $wgCommandLineMode ) {
|
|
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
|
|
die( "This script must be run from the command line\n" );
|
|
}
|
|
}
|
|
## Uncomment this to disable output compression
|
|
# $wgDisableOutputCompression = true;
|
|
|
|
$wgSitename = "FedoraProject";
|
|
|
|
$wgUploadPath = "$wgScriptPath/attachments"; /// defaults to "{$wgScriptPath}/images"
|
|
$wgUploadPath = "/w/uploads"; /// defaults to "{$wgScriptPath}/images"
|
|
$wgUploadDirectory = "/mnt/web/attachments"; /// defaults to "{$IP}/images"
|
|
$wgHashedUploadDirectory = true;
|
|
$wgCheckFileExtensions=false;
|
|
$wgStrictFileExtensions=false;
|
|
#$wgLoadFileinfoExtension=false;
|
|
$wgVerifyMimeType= false;
|
|
$wgMimeDetectorCommand= "file -bi";
|
|
|
|
#$wgFileExtensions = false;
|
|
#$wgGroupPermissions['user' ]['delete'] = true;
|
|
|
|
$wgGroupPermissions['*']['createaccount'] = false;
|
|
|
|
# HNP Can't manage the interwiki right... - Nigel
|
|
$wgGroupPermissions['*']['interwiki'] = false;
|
|
$wgGroupPermissions['sysop']['interwiki'] = true;
|
|
|
|
# Create a patrollers group to help check wiki edits - Ian
|
|
$wgGroupPermissions['patrollers']['patrol'] = true;
|
|
$wgGroupPermissions['patrollers']['autopatrol'] = true;
|
|
$wgGroupPermissions['sysop']['patrol'] = false;
|
|
$wgGroupPermissions['sysop']['autopatrol'] = false;
|
|
|
|
# Create a pruners group to delete pages in accordance with new deletion policy - Ian
|
|
$wgGroupPermissions['pruners']['delete'] = true;
|
|
$wgGroupPermissions['pruners']['bigdelete'] = true;
|
|
$wgGroupPermissions['pruners']['deletedhistory'] = true;
|
|
$wgGroupPermissions['pruners']['undelete'] = true;
|
|
|
|
## The URL base path to the directory containing the wiki;
|
|
## defaults for all runtime URL paths are based off of this.
|
|
#$wgScriptPath = "/wiki";
|
|
$wgScriptPath = "/{{ wpath }}";
|
|
$wgScriptExtension = ".php";
|
|
$wgScript = "$wgScriptPath/index.php";
|
|
$wgRedirectScript = "$wgScriptPath/redirect.php";
|
|
$wgArticlePath = "/{{ wikipath }}/$1";
|
|
|
|
|
|
## For more information on customizing the URLs please see:
|
|
## http://www.mediawiki.org/wiki/Manual:Short_URL
|
|
|
|
$wgEnableEmail = true;
|
|
$wgEnableUserEmail = true;
|
|
|
|
$wgEmergencyContact = "webmaster@fedoraproject.org";
|
|
$wgPasswordSender = "fedorawiki-noreply@fedoraproject.org";
|
|
$wgNoReplyAddress = "fedorawiki-noreply@fedoraproject.org";
|
|
|
|
|
|
#$wgSMTP = array(
|
|
# "host" => 'bastion',
|
|
# "port" => '25'
|
|
#);
|
|
|
|
## For a detailed description of the following switches see
|
|
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
|
|
## There are many more options for fine tuning available see
|
|
## /includes/DefaultSettings.php
|
|
## UPO means: this is also a user preference option
|
|
$wgEnotifUserTalk = true; # UPO
|
|
$wgEnotifWatchlist = true; # UPO
|
|
$wgEmailAuthentication = false;
|
|
|
|
$wgDBtype = "mysql";
|
|
$wgDBserver = "db05";
|
|
$wgDBname = "fpo-mediawiki";
|
|
$wgDBuser = "fpo-mw-user";
|
|
$wgDBpassword = "{{ fpoPassword }}";
|
|
$wgDBport = "5432";
|
|
$wgDBprefix = "en_";
|
|
|
|
# MySQL table options to use during installation or update
|
|
$wgDBTableOptions = "TYPE=InnoDB";
|
|
|
|
# Schemas for Postgres
|
|
$wgDBmwschema = "mediawiki";
|
|
$wgDBts2schema = "public";
|
|
|
|
# Experimental charset support for MySQL 4.1/5.0.
|
|
$wgDBmysql5 = false;
|
|
|
|
## Shared memory settings
|
|
$wgMainCacheType = CACHE_MEMCACHED;
|
|
$wgParserCacheType = CACHE_MEMCACHED;
|
|
$wgMessageCacheType = CACHE_MEMCACHED;
|
|
$wgSessionsInMemcached = true;
|
|
$wgMemCachedServers = array (
|
|
0 => 'memcached01:11211',
|
|
);
|
|
|
|
## To enable image uploads, make sure the 'images' directory
|
|
## is writable, then set this to true:
|
|
$wgEnableUploads = true;
|
|
$wgUseImageMagick = false;
|
|
#$wgUseImageMagick = true;
|
|
#$wgImageMagickConvertCommand = "/usr/bin/convert";
|
|
|
|
## If you want to use image uploads under safe mode,
|
|
## create the directories images/archive, images/thumb and
|
|
## images/temp, and make them all writable. Then uncomment
|
|
## this, if it's not already uncommented:
|
|
# $wgHashedUploadDirectory = false;
|
|
|
|
## If you have the appropriate support software installed
|
|
## you can enable inline LaTeX equations:
|
|
$wgUseTeX = false;
|
|
|
|
$wgLocalInterwiki = $wgSitename;
|
|
|
|
$wgLanguageCode = "en";
|
|
|
|
$wgProxyKey = "b957b9365f724d22f666998b751507c551c66484bf75b1cc33802a67e92b0827";
|
|
|
|
## Default skin: you can change the default skin. Use the internal symbolic
|
|
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
|
|
$wgDefaultSkin = 'fedora';
|
|
|
|
## For attaching licensing metadata to pages, and displaying an
|
|
## appropriate copyright notice / icon. GNU Free Documentation
|
|
## License and Creative Commons licenses are supported so far.
|
|
$wgEnableCreativeCommonsRdf = false;
|
|
$wgRightsPage = "Legal:Main"; # Set to the title of a wiki page that describes your license/copyright
|
|
$wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
|
|
$wgRightsText = "Attribution-Share Alike 3.0 Unported";
|
|
$wgRightsIcon = "";
|
|
# $wgRightsCode = "[license_code]"; # Not yet used
|
|
|
|
$wgDiff3 = "/usr/bin/diff3";
|
|
|
|
# When you make changes to this configuration file, this will make
|
|
# sure that cached pages are cleared.
|
|
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
|
|
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );
|
|
|
|
define("NS_ARCHIVE", 100);
|
|
define("NS_ARCHIVE_TALK",101);
|
|
define("NS_MEETING",102);
|
|
define("NS_MEETING_TALK",103);
|
|
define("NS_QA",104);
|
|
define("NS_QA_TALK",105);
|
|
define("NS_LEGAL", 106);
|
|
define("NS_LEGAL_TALK", 107);
|
|
define("NS_LICENSING", 108);
|
|
define("NS_LICENSING_TALK", 109);
|
|
define("NS_PACKAGING", 110);
|
|
define("NS_PACKAGING_TALK", 111);
|
|
define("NS_FUDCON", 112);
|
|
define("NS_FUDCON_TALK", 113);
|
|
define("NS_TEST_DAY", 114);
|
|
define("NS_TEST_DAY_TALK", 115);
|
|
define("NS_TEST_RESULTS", 116);
|
|
define("NS_TEST_RESULTS_TALK", 117);
|
|
|
|
$wgExtraNamespaces[NS_ARCHIVE] = "Archive";
|
|
$wgExtraNamespaces[NS_ARCHIVE_TALK] = "Archive_talk";
|
|
$wgExtraNamespaces[NS_MEETING] = "Meeting";
|
|
$wgExtraNamespaces[NS_MEETING_TALK] = "Meeting_talk";
|
|
$wgExtraNamespaces[NS_QA] = "QA";
|
|
$wgExtraNamespaces[NS_QA_TALK] = "QA_talk";
|
|
$wgExtraNamespaces[NS_LEGAL] = "Legal";
|
|
$wgExtraNamespaces[NS_LEGAL_TALK] = "Legal_talk";
|
|
$wgExtraNamespaces[NS_LICENSING] = "Licensing";
|
|
$wgExtraNamespaces[NS_LICENSING_TALK] = "Licensing_talk";
|
|
$wgExtraNamespaces[NS_PACKAGING] = "Packaging";
|
|
$wgExtraNamespaces[NS_PACKAGING_TALK] = "Packaging_talk";
|
|
$wgExtraNamespaces[NS_FUDCON] = "FUDCon";
|
|
$wgExtraNamespaces[NS_FUDCON_TALK] = "FUDCon_talk";
|
|
$wgExtraNamespaces[NS_TEST_DAY] = "Test_Day";
|
|
$wgExtraNamespaces[NS_TEST_DAY_TALK] = "Test_Day_talk";
|
|
$wgExtraNamespaces[NS_TEST_RESULTS] = "Test_Results";
|
|
$wgExtraNamespaces[NS_TEST_RESULTS_TALK] = "Test_Results_talk";
|
|
|
|
$wgNamespacesWithSubpages = array(
|
|
NS_MAIN => true,
|
|
NS_TALK => true,
|
|
NS_USER => true,
|
|
NS_USER_TALK => true,
|
|
NS_PROJECT_TALK => true,
|
|
NS_IMAGE_TALK => true,
|
|
NS_MEDIAWIKI_TALK => true,
|
|
NS_TEMPLATE_TALK => true,
|
|
NS_HELP_TALK => true,
|
|
NS_CATEGORY_TALK => true,
|
|
NS_ARCHIVE => true,
|
|
NS_ARCHIVE_TALK => true,
|
|
NS_MEETING => true,
|
|
NS_MEETING_TALK => true,
|
|
NS_QA => true,
|
|
NS_QA_TALK => true,
|
|
NS_LEGAL => true,
|
|
NS_LEGAL_TALK => true,
|
|
NS_LICENSING => true,
|
|
NS_LICENSING_TALK => true,
|
|
NS_PACKAGING => true,
|
|
NS_PACKAGING_TALK => true,
|
|
NS_FUDCON => true,
|
|
NS_FUDCON_TALK => true,
|
|
NS_TEST_DAY => true,
|
|
NS_TEST_DAY_TALK => true,
|
|
NS_TEST_RESULTS => true,
|
|
NS_TEST_RESULTS_TALK => true
|
|
);
|
|
|
|
$wgNamespacesToBeSearchedDefault = array(
|
|
NS_MAIN => true,
|
|
NS_TALK => false,
|
|
NS_USER => false,
|
|
NS_USER_TALK => false,
|
|
NS_PROJECT => true,
|
|
NS_PROJECT_TALK => false,
|
|
NS_IMAGE => true,
|
|
NS_IMAGE_TALK => false,
|
|
NS_MEDIAWIKI => false,
|
|
NS_MEDIAWIKI_TALK => false,
|
|
NS_TEMPLATE => false,
|
|
NS_TEMPLATE_TALK => false,
|
|
NS_HELP => true,
|
|
NS_HELP_TALK => false,
|
|
NS_CATEGORY => true,
|
|
NS_CATEGORY_TALK => false,
|
|
NS_ARCHIVE => false,
|
|
NS_ARCHIVE_TALK => false,
|
|
NS_MEETING => false,
|
|
NS_MEETING_TALK => false,
|
|
NS_QA => false,
|
|
NS_QA_TALK => false,
|
|
NS_LEGAL => true,
|
|
NS_LEGAL_TALK => false,
|
|
NS_LICENSING => true,
|
|
NS_LICENSING_TALK => false,
|
|
NS_PACKAGING => true,
|
|
NS_PACKAGING_TALK => false,
|
|
NS_FUDCON => true,
|
|
NS_FUDCON_TALK => false,
|
|
NS_TEST_DAY => true,
|
|
NS_TEST_DAY_TALK => false,
|
|
NS_TEST_RESULTS => true,
|
|
NS_TEST_RESULTS_TALK => false
|
|
);
|
|
|
|
#require_once "$IP/extensions/OpenID/OpenID.setup.php";
|
|
#require 'extensions/StubManager/StubManager.php';
|
|
#require 'extensions/HNP/HNP.php';
|
|
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
|
|
require_once "$IP/extensions/Interwiki/Interwiki.php";
|
|
require_once "$IP/extensions/Cite/Cite.php";
|
|
require_once "$IP/extensions/Auth_FAS.php";
|
|
$wgAuth = new Auth_FAS();
|
|
require_once "$IP/extensions/fedmsg-emit.php";
|
|
require_once "$IP/extensions/HTTP302Found/HTTP302Found.php";
|
|
require_once "$IP/extensions/intersection/DynamicPageList.php";
|
|
require_once "$IP/extensions/RSS/RSS.php";
|
|
|
|
$wgShowExceptionDetails = true;
|
|
|
|
$wgSkipSkins = array("chick", "cologneblue", "monobook", "myskin", "nostalgia", "simple", "standard");
|
|
|
|
$wgSVGConverter = 'rsvg';
|
|
|
|
# This series of settings is used for reverse proxies
|
|
$wgUseSquid = true;
|
|
# The SquidNoPurge setting is used to determine reverse proxies
|
|
$wgSquidServersNoPurge = array(
|
|
{% if environment == "staging" %}
|
|
# proxy01.stg
|
|
"10.5.126.88",
|
|
{% else %}
|
|
# proxy01
|
|
"10.5.126.52",
|
|
"192.168.1.11",
|
|
|
|
# proxy02
|
|
"85.236.55.6",
|
|
"2001:4178:2:1269::fed2",
|
|
"192.168.1.12",
|
|
|
|
# proxy03
|
|
"66.35.62.162",
|
|
"192.168.1.7",
|
|
|
|
# proxy04
|
|
"152.19.134.142",
|
|
"2610:28:3090:3001:dead:beef:cafe:fed3",
|
|
"192.168.1.14",
|
|
|
|
# proxy05
|
|
"5.175.150.50",
|
|
"2a00:d1a0:1::131",
|
|
"192.168.1.25",
|
|
|
|
# proxy06
|
|
"140.211.169.196",
|
|
"192.168.1.63",
|
|
|
|
# proxy07
|
|
"213.175.193.206",
|
|
"192.168.1.52",
|
|
|
|
# proxy08
|
|
"67.203.2.67",
|
|
"2607:f188::dead:beef:cafe:fed1",
|
|
"192.168.1.78",
|
|
|
|
# proxy09
|
|
"66.135.62.187",
|
|
"192.168.1.15",
|
|
|
|
# proxy10
|
|
"10.5.126.51",
|
|
"192.168.1.17",
|
|
|
|
# proxy11
|
|
"67.219.144.68",
|
|
"2604:1580:fe00:0:5054:ff:feae:702c",
|
|
"192.168.1.37",
|
|
|
|
{% endif %}
|
|
);
|
|
# This setting is used to send PURGE requests to varnish on reverse proxies upon page changes
|
|
$wgSquidServers = array(
|
|
{% if environment == "staging" %}
|
|
# proxy01.stg
|
|
"10.5.126.88:6081",
|
|
{% else %}
|
|
# proxy01
|
|
"10.5.126.52:6081",
|
|
# proxy02
|
|
"192.168.1.12:6081",
|
|
# proxy03
|
|
"192.168.1.7:6081",
|
|
# proxy04
|
|
"192.168.1.14:6081",
|
|
# proxy05
|
|
"192.168.1.25:6081",
|
|
# proxy06
|
|
"192.168.1.63:6081",
|
|
# proxy07
|
|
"192.168.1.52:6081",
|
|
# proxy08
|
|
"192.168.1.78:6081",
|
|
# proxy09
|
|
"192.168.1.15:6081",
|
|
# proxy10
|
|
"10.5.126.51:6081",
|
|
# proxy11
|
|
"192.168.1.37:6081",
|
|
{% endif %}
|
|
);
|
|
$wgSquidMaxage = 432000;
|
|
|
|
# Don't add rel="nofollow"
|
|
$wgNoFollowLinks = false;
|
|
|
|
# This can be an array in version 1.14 and above.
|
|
$wgAllowExternalImagesFrom = array("http://fedoraproject.org/", "http://docs.fedoraproject.org", "http://fedorahosted.org/", "http://fedorapeople.org", "http://planet.fedoraproject.org");
|
|
|
|
$wgAllowUserCss = true;
|
|
$wgAllowUserJs = true;
|
|
|
|
$wgEnableWriteAPI = true;
|
|
|
|
$wgLogo = "http://fedoraproject.org/static/images/fedora-logo.png";
|
|
|
|
### LOCKDOWN PERMISSIONS ###
|
|
$wgGroupPermissions['Legal']['read'] = true;
|
|
$wgGroupPermissions['Packaging']['read'] = true;
|
|
|
|
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
|
|
|
|
$wgSpecialPageLockdown['Export'] = array('*');
|
|
|
|
$wgNamespacePermissionLockdown['*']['edit'] = array('user');
|
|
$wgNamespacePermissionLockdown[NS_FUDCON]['edit'] = array('user');
|
|
$wgNamespacePermissionLockdown[NS_TEST_DAY]['edit'] = array('*');
|
|
$wgNamespacePermissionLockdown[NS_TEST_RESULTS]['edit'] = array('*');
|
|
$wgNamespacePermissionLockdown[NS_LEGAL]['edit'] = array('Legal');
|
|
$wgNamespacePermissionLockdown[NS_LICENSING]['edit'] = array('Legal');
|
|
$wgNamespacePermissionLockdown[NS_PACKAGING]['edit'] = array('Packaging');
|
|
|
|
$wgNamespacePermissionLockdown['*']['move'] = array('user');
|
|
$wgNamespacePermissionLockdown[NS_LEGAL]['move'] = array('Legal');
|
|
$wgNamespacePermissionLockdown[NS_LICENSING]['move'] = array('Legal');
|
|
$wgNamespacePermissionLockdown[NS_PACKAGING]['move'] = array('Packaging');
|
|
### END LOCKDOWN PERMISSIONS ###
|
|
|
|
# Experimentation - Added by nigelj 30/Dec/2008
|
|
$wgSearchType = "SearchMySQL";
|
|
|
|
# page_counter is known to be slow, disabled for performance reasons
|
|
$wgDisableCounters = true;
|
|
|
|
#$wgReadOnly = "Wiki Maintenance In Progress - ETA: 15 August 08 04:00 UTC";
|
|
$wgStyleVersion = '273';
|
|
|
|
# Fedora Badges Extension
|
|
require_once( "$IP/extensions/FedoraBadges/FedoraBadges.php" );
|