Skip to content

Commit

Permalink
Set wgCdnServers for miraheze.org (#5772)
Browse files Browse the repository at this point in the history
We are using varnish behind Cloudflare without using cf for caching now.
  • Loading branch information
paladox authored Dec 20, 2024
1 parent faf9d1c commit cddfe0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions GlobalCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

$beta = preg_match( '/^(.*)\.(mirabeta|nexttide)\.org$/', $wi->server );

// Retain $wgCdnServers for wikis not using cloudflare (wikitide.org domain or custom domains)
if ( !$beta && !preg_match( '/^(.*)\.miraheze\.org$/', $wi->server ) ) {
if ( !$beta ) {
$wgCdnServers = [
/** cp36 */
'[2602:294:0:b13::110]:81',
Expand Down
12 changes: 3 additions & 9 deletions LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4348,18 +4348,12 @@
'default' => false,
],

// MultiPurge
// MultiPurge (TODO: Remove extension)
'wgMultiPurgeEnabledServices' => [
'default' => [
'Cloudflare',
// 'Varnish',
],
'default' => null
],
'wgMultiPurgeServiceOrder' => [
'default' => [
// 'Varnish',
'Cloudflare',
],
'default' => null
],

// MultimediaViewer (not beta)
Expand Down

0 comments on commit cddfe0d

Please sign in to comment.