Accept X-Forwarded-For Header

This commit is contained in:
paul 2021-01-13 07:13:34 +01:00
parent 9b79695717
commit 768064ceb1

View file

@ -1,3 +1,10 @@
<?php <?php
# This file can be replaced by mounting in a custom configuration, that will # This file can be replaced by mounting in a custom configuration, that will
# augment the generated config. # augment the generated config.
# trust X-Forwarded-For Header from private IPs
$wgUsePrivateIPs = true;
$wgCdnServersNoPurge = array();
$wgCdnServersNoPurge[] = "10.0.0.0/8";
$wgCdnServersNoPurge[] = "172.16.0.0/12";
$wgCdnServersNoPurge[] = "192.168.0.0/16";