Skip to content

Commit

Permalink
Sync settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Nov 28, 2024
1 parent 51d57a1 commit a037637
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions config/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
// Cloudflare CDN settings
$wgUseCdn = true;
$wgCdnMaxAge = $wgParserCacheExpireTime;
$wgCdnMatchParameterOrder = false;
// https://www.cloudflare.com/ips
$wgCdnServersNoPurge = [
'194.233.168.70', // Linode Loadbalancer
Expand Down Expand Up @@ -600,11 +601,11 @@
'TemplateStylesExtender',
'TextExtracts',
'Thanks',
'Thumbro',
'TwoColConflict',
// 'UniversalLanguageSelector', // Disabled due to performance issue
'UploadWizard',
'Variables',
'VipsScaler',
'VisualEditor',
'WebP',
'WebAuthn',
Expand Down Expand Up @@ -964,6 +965,15 @@
*/
$wgExtractsRemoveClasses[] = '.metadata';

/**
* Extension:Thumbro
*
* @see https://github.com/StarCitizenTools/mediawiki-extensions-Thumbro
*/
// We restricted the page to specific user groups
// Check the group permission settings below
$wgThumbroExposeTestPage = true;

/**
* Extension:TwoColConflict
*
Expand Down Expand Up @@ -1099,23 +1109,6 @@
],
];

/**
* Extension:VipsScaler
*
* @see https://github.com/StarCitizenTools/mediawiki-extensions-VipsScaler
*/
// We restricted the page to specific user groups
// Check the group permission settings below
$wgVipsExposeTestPage = true;
$wgVipsOptions = [
// Enable for all PNGs
[
'conditions' => [
'mimeType' => 'image/png',
],
],
];

/**
* Extension:VisualEditor
*
Expand Down Expand Up @@ -1223,8 +1216,8 @@
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
// Restrict Vips test page to editors or above
$wgGroupPermissions['*']['vipsscaler-test'] = false;
// Restrict Special:ThumbroTest to editors or above
$wgGroupPermissions['*']['thumbro-test'] = false;

// Registered user
$wgGroupPermissions['user']['edit'] = true;
Expand Down Expand Up @@ -1307,7 +1300,7 @@
$wgGroupPermissions['Editor']['noratelimit'] = true;
$wgGroupPermissions['Editor']['move-rootuserpages'] = true;
$wgGroupPermissions['Editor']['org-edit'] = true;
$wgGroupPermissions['Editor']['vipsscaler-test'] = true;
$wgGroupPermissions['Editor']['thumbro-test'] = true;

// Sysop
// It's Over 9000!
Expand Down Expand Up @@ -1422,7 +1415,7 @@

/** @see https://www.mediawiki.org/wiki/Manual:$wgNoFollowLinks */
$wgHooks['HtmlPageLinkRendererEnd'][] = function( $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret ) {
// Append rel="nofollow" to red links to avoid unnessecary crawler traffic
// Append rel="nofollow" to red links to avoid unnecessary crawler traffic
if ( !$isKnown && preg_match( '/\bnew\b/S', $attribs['class'] ?? '' ) ) {
$attribs['rel'] = 'nofollow';
}
Expand Down

0 comments on commit a037637

Please sign in to comment.