From bde9bc38aec7f938a9be9b8978f0aa7ea279afd3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 11 Jul 2016 09:30:04 +0200 Subject: Add public LocalSettings.archlinux.org.php config Signed-off-by: Florian Pritz --- LocalSettings.archlinux.org.php | 209 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 LocalSettings.archlinux.org.php (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php new file mode 100644 index 00000000..6d021f12 --- /dev/null +++ b/LocalSettings.archlinux.org.php @@ -0,0 +1,209 @@ + 'https://www.archlinux.org/', + 'Packages' => 'https://www.archlinux.org/packages/', + 'Forums' => 'https://bbs.archlinux.org/', + 'Wiki' => 'https://wiki.archlinux.org/', + 'Bugs' => 'https://bugs.archlinux.org/', + 'AUR' => 'https://aur.archlinux.org/', + 'Download' => 'https://www.archlinux.org/download/' + ); +$wgArchNavBarSelectedDefault = 'Wiki'; +$wgFooterIcons = array(); + +$wgLocaltimezone = 'UTC'; + +## 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. +$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright +$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html"; +$wgRightsText = "GNU Free Documentation License 1.3 or later"; +$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png"; + +# Query string length limit for ResourceLoader. You should only set this if +# your web server has a query string length limit (then set it to that limit), +# or if you have suhosin.get.max_value_length set in php.ini (then set it to +# that value) +$wgResourceLoaderMaxQueryLength = -1; + +# The following permissions were set based on your choice in the installer +$wgEmailConfirmToEdit = true; +$wgAllowUserCssPrefs = false; +$wgDisableAnonTalk = true; +$wgGroupPermissions['*']['edit'] = false; +$wgGroupPermissions['sysop']['deleterevision'] = true; +$wgGroupPermissions['user']['upload'] = false; +$wgGroupPermissions['user']['reupload'] = false; +$wgGroupPermissions['user']['reupload-shared'] = false; +$wgGroupPermissions['autoconfirmed']['upload'] = false; +$wgGroupPermissions['maintainer']['autopatrol'] = true; +$wgGroupPermissions['maintainer']['patrol'] = true; +$wgGroupPermissions['maintainer']['noratelimit'] = true; +$wgGroupPermissions['maintainer']['suppressredirect'] = true; +$wgGroupPermissions['maintainer']['rollback'] = true; +$wgGroupPermissions['maintainer']['browsearchive'] = true; +$wgGroupPermissions['maintainer']['apihighlimits'] = true; +$wgGroupPermissions['maintainer']['unwatchedpages'] = true; +$wgGroupPermissions['maintainer']['deletedhistory'] = true; +$wgGroupPermissions['maintainer']['deletedtext'] = true; + +# disable user account creation via API +$wgAPIModules['createaccount'] = 'ApiDisabled'; +# remove 'writeapi' right from users +$wgGroupPermissions['*']['writeapi'] = false; +$wgGroupPermissions['user']['writeapi'] = false; +# add 'writeapi' to autoconfirmed users, maintainers and admins +$wgGroupPermissions['autoconfirmed']['writeapi'] = true; +$wgGroupPermissions['maintainer']['writeapi'] = true; +$wgGroupPermissions['sysop']['writeapi'] = true; +# stricter conditions for 'autoconfirmed' promotion +$wgAutoConfirmAge = 86400*3; // three days +# require at least 20 normal edits before granting the 'writeapi' right +$wgAutoConfirmCount = 20; + +# 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: + +# $wgShowSQLErrors = true; +# $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.'; + +$wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\.git(.*)'] = 'https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/commit/?id=%H'; + +$wgJobRunRate = 0; + +require_once( "$IP/extensions/Nuke/Nuke.php" ); + +wfLoadExtension( 'CheckUser' ); +require_once "$IP/extensions/AbuseFilter/AbuseFilter.php"; + +# AbuseFilter extension +$wgGroupPermissions['sysop']['abusefilter-modify'] = true; +$wgGroupPermissions['*']['abusefilter-log-detail'] = true; +$wgGroupPermissions['*']['abusefilter-view'] = true; +$wgGroupPermissions['*']['abusefilter-log'] = true; +$wgGroupPermissions['sysop']['abusefilter-private'] = true; +$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; +$wgGroupPermissions['sysop']['abusefilter-revert'] = true; + +# CheckUser extension +$wgGroupPermissions['sysop']['checkuser'] = true; +$wgGroupPermissions['sysop']['checkuser-log'] = true; + + +# temporary disable registration; reverted 2016-6-26 bluewind +#$wgGroupPermissions['*']['createaccount'] = false; + +$wgUserEmailUseReplyTo = true; -- cgit v1.2.3-54-g00ecf From 862da92c7a3b6479fc4daa4bf3b8944aa6735d8b Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:10:13 +0200 Subject: LocalSettings: move general settings to the top --- LocalSettings.archlinux.org.php | 62 ++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 28 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 6d021f12..89f8ca92 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -15,11 +15,20 @@ if ( !defined( 'MEDIAWIKI' ) ) { exit; } -## Uncomment this to disable output compression -# $wgDisableOutputCompression = true; +## +## General settings +## $wgSitename = "ArchWiki"; +## The protocol and server name to use in fully-qualified URLs +$wgServer = "https://wiki.archlinux.org"; + +$wgLocaltimezone = 'UTC'; + +# Site language code, should be one of the list in ./languages/Names.php +$wgLanguageCode = "en"; + ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: @@ -29,9 +38,6 @@ $wgScriptPath = ""; $wgUsePathInfo = true; $wgScriptExtension = ".php"; -## The protocol and server name to use in fully-qualified URLs -$wgServer = "https://wiki.archlinux.org"; - ## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins"; @@ -39,6 +45,29 @@ $wgStylePath = "$wgScriptPath/skins"; ## or else you'll overwrite your logo when you upgrade! $wgLogo = "$wgStylePath/archlinux/archlogo.png"; +## 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. +$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright +$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html"; +$wgRightsText = "GNU Free Documentation License 1.3 or later"; +$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png"; + +# Query string length limit for ResourceLoader. You should only set this if +# your web server has a query string length limit (then set it to that limit), +# or if you have suhosin.get.max_value_length set in php.ini (then set it to +# that value) +# TODO: -1 is the default +$wgResourceLoaderMaxQueryLength = -1; + +$wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\.git(.*)'] = 'https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/commit/?id=%H'; + +$wgJobRunRate = 0; + + +## Uncomment this to disable output compression +# $wgDisableOutputCompression = true; + ## UPO means: this is also a user preference option $wgEnableEmail = true; @@ -100,9 +129,6 @@ $wgFileCacheDirectory = "$IP/../cache/html"; $wgUseGzip = true; $wgUseETag = true; -# Site language code, should be one of the list in ./languages/Names.php -$wgLanguageCode = "en"; - ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector': //require_once "$IP/skins/ArchLinux/ArchLinux.php"; @@ -122,22 +148,6 @@ $wgArchNavBar = array( $wgArchNavBarSelectedDefault = 'Wiki'; $wgFooterIcons = array(); -$wgLocaltimezone = 'UTC'; - -## 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. -$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright -$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html"; -$wgRightsText = "GNU Free Documentation License 1.3 or later"; -$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png"; - -# Query string length limit for ResourceLoader. You should only set this if -# your web server has a query string length limit (then set it to that limit), -# or if you have suhosin.get.max_value_length set in php.ini (then set it to -# that value) -$wgResourceLoaderMaxQueryLength = -1; - # The following permissions were set based on your choice in the installer $wgEmailConfirmToEdit = true; $wgAllowUserCssPrefs = false; @@ -180,10 +190,6 @@ $wgAutoConfirmCount = 20; # $wgShowSQLErrors = true; # $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.'; -$wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\.git(.*)'] = 'https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/commit/?id=%H'; - -$wgJobRunRate = 0; - require_once( "$IP/extensions/Nuke/Nuke.php" ); wfLoadExtension( 'CheckUser' ); -- cgit v1.2.3-54-g00ecf From d3defaa19b976e7811e95edb5ac5c78f9ef9fa40 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:11:44 +0200 Subject: LocalSettings: move database settings --- LocalSettings.archlinux.org.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 89f8ca92..0129df54 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -65,6 +65,23 @@ $wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\ $wgJobRunRate = 0; +## +## Database settings +## + +$wgDBtype = "mysql"; +$wgDBserver = "localhost"; + +# MySQL specific settings +$wgDBprefix = ""; + +# MySQL table options to use during installation or update +$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; + +# Experimental charset support for MySQL 5.0. +$wgDBmysql5 = false; + + ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; @@ -80,19 +97,6 @@ $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; -## Database settings -$wgDBtype = "mysql"; -$wgDBserver = "localhost"; - -# MySQL specific settings -$wgDBprefix = ""; - -# MySQL table options to use during installation or update -$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; - -# Experimental charset support for MySQL 5.0. -$wgDBmysql5 = false; - ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = array(); -- cgit v1.2.3-54-g00ecf From d69ef76ef7d1775f2b208e2930288feec0220401 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:21:46 +0200 Subject: LocalSettings: move email settings --- LocalSettings.archlinux.org.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 0129df54..de52ad26 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -82,8 +82,9 @@ $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; $wgDBmysql5 = false; -## Uncomment this to disable output compression -# $wgDisableOutputCompression = true; +## +## Email settings +## ## UPO means: this is also a user preference option @@ -97,6 +98,13 @@ $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; +# avoid bouncing of user-to-user emails (FS#26737) +$wgUserEmailUseReplyTo = true; + + +## Uncomment this to disable output compression +# $wgDisableOutputCompression = true; + ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = array(); @@ -215,5 +223,3 @@ $wgGroupPermissions['sysop']['checkuser-log'] = true; # temporary disable registration; reverted 2016-6-26 bluewind #$wgGroupPermissions['*']['createaccount'] = false; - -$wgUserEmailUseReplyTo = true; -- cgit v1.2.3-54-g00ecf From c13e67c0a0ab99ed0952824b69850c3efed2a9dc Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:24:19 +0200 Subject: LocalSettings: move cache settings --- LocalSettings.archlinux.org.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index de52ad26..5cafa9cd 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -102,13 +102,30 @@ $wgEmailAuthentication = true; $wgUserEmailUseReplyTo = true; -## Uncomment this to disable output compression -# $wgDisableOutputCompression = true; +## +## Cache settings +## ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = array(); +## Set $wgCacheDirectory to a writable directory on the web server +## to make your wiki go slightly faster. The directory should not +## be publically accessible from the web. +$wgCacheDirectory = "$IP/../cache/data"; +$wgShowIPinHeader = false; +$wgDisableCounters = true; +$wgEnableSidebarCache = true; +$wgUseFileCache = true; +$wgFileCacheDirectory = "$IP/../cache/html"; +$wgUseGzip = true; +$wgUseETag = true; + +## Uncomment this to disable output compression +# $wgDisableOutputCompression = true; + + ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; @@ -129,18 +146,6 @@ $wgShellLocale = "en_US.utf8"; ## this, if it's not already uncommented: #$wgHashedUploadDirectory = false; -## Set $wgCacheDirectory to a writable directory on the web server -## to make your wiki go slightly faster. The directory should not -## be publically accessible from the web. -$wgCacheDirectory = "$IP/../cache/data"; -$wgShowIPinHeader = false; -$wgDisableCounters = true; -$wgEnableSidebarCache = true; -$wgUseFileCache = true; -$wgFileCacheDirectory = "$IP/../cache/html"; -$wgUseGzip = true; -$wgUseETag = true; - ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector': //require_once "$IP/skins/ArchLinux/ArchLinux.php"; -- cgit v1.2.3-54-g00ecf From 9a884e1ade06b8b116967c86a03aaf195871cb61 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:28:54 +0200 Subject: LocalSettings: add remaining section comments --- LocalSettings.archlinux.org.php | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 5cafa9cd..31f0d0aa 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -126,6 +126,10 @@ $wgUseETag = true; # $wgDisableOutputCompression = true; +## +## Media settings +## + ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; @@ -146,6 +150,11 @@ $wgShellLocale = "en_US.utf8"; ## this, if it's not already uncommented: #$wgHashedUploadDirectory = false; + +## +## Skin settings +## + ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector': //require_once "$IP/skins/ArchLinux/ArchLinux.php"; @@ -165,7 +174,11 @@ $wgArchNavBar = array( $wgArchNavBarSelectedDefault = 'Wiki'; $wgFooterIcons = array(); -# The following permissions were set based on your choice in the installer + +## +## Access control settings +## + $wgEmailConfirmToEdit = true; $wgAllowUserCssPrefs = false; $wgDisableAnonTalk = true; @@ -200,19 +213,15 @@ $wgAutoConfirmAge = 86400*3; // three days # require at least 20 normal edits before granting the 'writeapi' right $wgAutoConfirmCount = 20; -# 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: -# $wgShowSQLErrors = true; -# $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.'; +## +## Additional extensions +## require_once( "$IP/extensions/Nuke/Nuke.php" ); -wfLoadExtension( 'CheckUser' ); -require_once "$IP/extensions/AbuseFilter/AbuseFilter.php"; - # AbuseFilter extension +require_once "$IP/extensions/AbuseFilter/AbuseFilter.php"; $wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['*']['abusefilter-log-detail'] = true; $wgGroupPermissions['*']['abusefilter-view'] = true; @@ -222,9 +231,17 @@ $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true; # CheckUser extension +wfLoadExtension( 'CheckUser' ); $wgGroupPermissions['sysop']['checkuser'] = true; $wgGroupPermissions['sysop']['checkuser-log'] = true; +## +## Temporary settings for maintenance +## + # temporary disable registration; reverted 2016-6-26 bluewind #$wgGroupPermissions['*']['createaccount'] = false; + +# $wgShowSQLErrors = true; +# $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.'; -- cgit v1.2.3-54-g00ecf From 2a42cb76964d1cc806c3e2bf10c7a7665db1f800 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Thu, 14 Jul 2016 13:48:27 +0200 Subject: LocalSettings: update path to license icon The path was changed in MediaWiki 1.24, see https://www.mediawiki.org/wiki/Manual:$wgRightsIcon --- LocalSettings.archlinux.org.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 31f0d0aa..165f2bb1 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -51,7 +51,7 @@ $wgLogo = "$wgStylePath/archlinux/archlogo.png"; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html"; $wgRightsText = "GNU Free Documentation License 1.3 or later"; -$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png"; +$wgRightsIcon = "$wgScriptPath/resources/assets/licenses/gnu-fdl.png"; # Query string length limit for ResourceLoader. You should only set this if # your web server has a query string length limit (then set it to that limit), -- cgit v1.2.3-54-g00ecf From 44eaa7c4ad62cf6e1228bb7b845716edc98c7431 Mon Sep 17 00:00:00 2001 From: Dario Giovannetti Date: Thu, 14 Jul 2016 23:06:45 +0800 Subject: Remind LocalSettings.php variables --- LocalSettings.archlinux.org.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 165f2bb1..f889ecc5 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -15,6 +15,20 @@ if ( !defined( 'MEDIAWIKI' ) ) { exit; } +## +## LocalSettings.php +## + +#$wgDBname = "XXX"; +#$wgDBuser = "XXX"; +#$wgDBpassword = "XXX"; +#$wgSecretKey = "XXX"; +#$wgUpgradeKey = "XXX"; +#require_once( "$IP/extensions/FunnyQuestion/FunnyQuestion.php" ); +#$wgFunnyQuestionHash = "XXX"; +#$wgFunnyQuestions = array(); + + ## ## General settings ## -- cgit v1.2.3-54-g00ecf From 06f04a2df473a712b61015db19c4f2da0c9808c3 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Sat, 16 Jul 2016 13:16:37 +0200 Subject: LocalSettings: remove $wgDisableCounters The feature was completely removed in MediaWiki 1.25.0, see https://www.mediawiki.org/wiki/Manual:$wgDisableCounters --- LocalSettings.archlinux.org.php | 1 - 1 file changed, 1 deletion(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index f889ecc5..57594b08 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -129,7 +129,6 @@ $wgMemCachedServers = array(); ## be publically accessible from the web. $wgCacheDirectory = "$IP/../cache/data"; $wgShowIPinHeader = false; -$wgDisableCounters = true; $wgEnableSidebarCache = true; $wgUseFileCache = true; $wgFileCacheDirectory = "$IP/../cache/html"; -- cgit v1.2.3-54-g00ecf From 5c93cc0eed19ee88427274e124e3a2aeb3b55eb6 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Sat, 16 Jul 2016 13:33:30 +0200 Subject: LocalSettings: move $wgAllowUserCssPrefs to relevant section --- LocalSettings.archlinux.org.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 57594b08..7cab6ac7 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -117,7 +117,7 @@ $wgUserEmailUseReplyTo = true; ## -## Cache settings +## Cache and performance settings ## ## Shared memory settings @@ -135,6 +135,10 @@ $wgFileCacheDirectory = "$IP/../cache/html"; $wgUseGzip = true; $wgUseETag = true; +# CSS-based preferences supposedly cause about 20 times slower page loads +# https://phabricator.wikimedia.org/rSVN63707 +$wgAllowUserCssPrefs = false; + ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; @@ -193,7 +197,6 @@ $wgFooterIcons = array(); ## $wgEmailConfirmToEdit = true; -$wgAllowUserCssPrefs = false; $wgDisableAnonTalk = true; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['sysop']['deleterevision'] = true; -- cgit v1.2.3-54-g00ecf From c20bddf2d35e5d9185262a46fda7ca91a4eade0c Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Wed, 20 Jul 2016 09:39:07 +0200 Subject: LocalSettings: Enable subpages in the main namespace The default value for the main namespace is `false`, because Wikipedia does not use subpages for categorization anymore. That is not the case on ArchWiki, so there is no reason why the main namespace should behave differently. The most visible changes are relative links using the normal double square brackets notation and automatic breadcrumb links appearing at the top of the subpage, linking to each parent page that exists. See [1] for discussion and [2] for upstream documentation of this setting. Also see the related FS#39668 [3], which will be solved by this patch. [1] https://wiki.archlinux.org/index.php/Help_talk:Style#Slashes_in_titles [2] https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages [3] https://bugs.archlinux.org/task/39668 --- LocalSettings.archlinux.org.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 7cab6ac7..e5249dc9 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -78,6 +78,9 @@ $wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\ $wgJobRunRate = 0; +# Enable subpages in the main namespace (FS#39668) +$wgNamespacesWithSubpages[NS_MAIN] = true; + ## ## Database settings -- cgit v1.2.3-54-g00ecf From 4bdf6e63e50da874ac4db65096d6d3af7f50aa64 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Wed, 20 Jul 2016 10:27:19 +0200 Subject: LocalSettings: Hide "minordefault" and "forceeditsummary" user options There is little wrong in letting the users configure these settings, but setting "Mark all edits as minor by default" to true or "Prompt me when entering a blank edit summary" to false has bad impact on the quality of the wiki edits, because such users tend to ignore the fundamental rules [1] and there is nothing to remind it to them. Disabling these user preferences and forcing the default values according to this patch will decrease the effort of the Maintenance Team spent on guiding the editors and also generally increase the quality of user contributions. This will solve FS#46190 [2]. [1] https://wiki.archlinux.org/index.php/ArchWiki:Contributing#The_3_fundamental_rules [2] https://bugs.archlinux.org/task/46190 --- LocalSettings.archlinux.org.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index e5249dc9..0d5d0d2c 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -199,14 +199,21 @@ $wgFooterIcons = array(); ## Access control settings ## +# disable anonymous editing $wgEmailConfirmToEdit = true; $wgDisableAnonTalk = true; $wgGroupPermissions['*']['edit'] = false; + +# extra rights for admins $wgGroupPermissions['sysop']['deleterevision'] = true; + +# disable uploads by normal users $wgGroupPermissions['user']['upload'] = false; $wgGroupPermissions['user']['reupload'] = false; $wgGroupPermissions['user']['reupload-shared'] = false; $wgGroupPermissions['autoconfirmed']['upload'] = false; + +# maintainers' rights $wgGroupPermissions['maintainer']['autopatrol'] = true; $wgGroupPermissions['maintainer']['patrol'] = true; $wgGroupPermissions['maintainer']['noratelimit'] = true; @@ -232,6 +239,16 @@ $wgAutoConfirmAge = 86400*3; // three days # require at least 20 normal edits before granting the 'writeapi' right $wgAutoConfirmCount = 20; +# Enforce basic editing etiquette (FS#46190) +# We set the defaults for "minordefault" (disabled) and "forceeditsummary" +# (enabled) options and hide them from the user preferences dialog. Note that +# hiding the user preferences with $wgHiddenPrefs results in everybody using +# the defaults, regardless of the users' earlier preference. +$wgDefaultUserOptions["minordefault"] = 0; +$wgDefaultUserOptions["forceeditsummary"] = 1; +$wgHiddenPrefs[] = "minordefault"; +$wgHiddenPrefs[] = "forceeditsummary"; + ## ## Additional extensions -- cgit v1.2.3-54-g00ecf From f1c44a65db08b237e7d65ec243e050c2c8db49e6 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Wed, 20 Jul 2016 21:14:14 +0200 Subject: LocalSettings: Enable support for userscripts and user-stylesheets Related bug report: FS#46699 [1] Enabling userscripts allows the users to use many existing scripts from Wikipedia [2], which can greatly improve the experience of reading, editing and maintaining the wiki. It will also allow us to make some ArchWiki-specific scripts like Wiki Monkey [3] more portable (currently it depends on browser extensions like Greasemonkey to work). Enabling user-stylesheets lets the users customize the default Arch skin on the wiki according to their preference, and more importantly, it makes it easier for users to test modifications and prepare patches for the main skin. This is probably the main blocker of FS#46697 [4]. [1] https://bugs.archlinux.org/task/46699 [2] https://en.wikipedia.org/wiki/Wikipedia:User_scripts [3] https://wiki.archlinux.org/index.php/Wiki_Monkey [4] https://bugs.archlinux.org/task/46697 --- LocalSettings.archlinux.org.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 0d5d0d2c..484ec190 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -81,6 +81,10 @@ $wgJobRunRate = 0; # Enable subpages in the main namespace (FS#39668) $wgNamespacesWithSubpages[NS_MAIN] = true; +# Enable support for userscripts and user-stylesheets (FS#46699) +$wgAllowUserJs = true; +$wgAllowUserCss = true; + ## ## Database settings -- cgit v1.2.3-54-g00ecf From 688fde9f793c9dbe85c561c00ee9b72ef97b1d6d Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Wed, 20 Jul 2016 21:49:44 +0200 Subject: LocalSettings: add groups for AbuseFilter rules --- LocalSettings.archlinux.org.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 484ec190..6d432b0b 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -270,6 +270,17 @@ $wgGroupPermissions['sysop']['abusefilter-private'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true; +# filter groups +$wgAbuseFilterValidGroups = array( 'default', 'proofed' ); +$wgAbuseFilterEmergencyDisableThreshold = array( + 'default' => 0.5, + 'proofed' => 1.0, +); +$wgAbuseFilterEmergencyDisableCount = array( + 'default' => 10, + 'proofed' => 65535, +); + # CheckUser extension wfLoadExtension( 'CheckUser' ); $wgGroupPermissions['sysop']['checkuser'] = true; -- cgit v1.2.3-54-g00ecf From 26fe3772c0d44656849169584dbba32a579dab14 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Sun, 24 Jul 2016 00:16:18 +0200 Subject: Enable ParserFunctions extension ParserFunctions allows for more versatile wiki templates, amongst other functionality, and is shipped with MediaWiki since version 1.18. [1] Included string functionality remains disabled, as is done on wikimedia projects. [2] [1] https://www.mediawiki.org/wiki/Extension:ParserFunctions [2] https://phabricator.wikimedia.org/T8455#110965 --- LocalSettings.archlinux.org.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 6d432b0b..afcbe857 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -286,6 +286,8 @@ wfLoadExtension( 'CheckUser' ); $wgGroupPermissions['sysop']['checkuser'] = true; $wgGroupPermissions['sysop']['checkuser-log'] = true; +# ParserFunctions extension +wfLoadExtension( 'ParserFunctions' ); ## ## Temporary settings for maintenance -- cgit v1.2.3-54-g00ecf From b5e7f46db0fcb6f251206eaf36339ad3ad589f8b Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Tue, 26 Jul 2016 20:02:58 +0200 Subject: Enable Interwiki extension This extension allows to modify the interwiki table [1], and is shipped with MediaWiki since version 1.21. [2] It is enabled as a temporary measure until functionality is merged to the MediaWiki core. [3] [1] https://www.mediawiki.org/wiki/Manual:Interwiki_table [2] https://www.mediawiki.org/wiki/Extension:Interwiki [3] https://phabricator.wikimedia.org/T33951 --- LocalSettings.archlinux.org.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index afcbe857..db98bdb4 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -289,6 +289,10 @@ $wgGroupPermissions['sysop']['checkuser-log'] = true; # ParserFunctions extension wfLoadExtension( 'ParserFunctions' ); +# Interwiki extension +wfLoadExtension( 'Interwiki' ); +$wgGroupPermissions['sysop']['interwiki'] = true; + ## ## Temporary settings for maintenance ## -- cgit v1.2.3-54-g00ecf