Skip to content

Commit 68aaa32

Browse files
committed
trust varnish headers
1 parent c7d0bc3 commit 68aaa32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LocalSettings.d/base/cdn.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77
$wgInternalServer = str_replace('https://', 'http://', $wgServer);
88
$wgCdnMaxAge = 18000; // 5 hours (default)
99
$wgCdnMaxageLagged = 18000; // MediaWiki incorrectly detects lagged database due to Galera cluster architecture.
10-
}
10+
}
11+
12+
# Trust proxy headers from Varnish
13+
$wgUsePrivateIPs = true;

0 commit comments

Comments
 (0)