« reverse-proxy-staging.php

( version controlblameraw text )



<?php
# our text squid in beta labs gets forwarded requests
# from the ssl terminator, to 127.0.0.1, so adding that
# address to the NoPurge list so that XFF headers for it
# will be stripped; purge requests should get to it
# on the address in the SquidServers list

# The beta cluster does not have multicast, hence we route the purge
# requests directly to the varnish instances. They have varnishhtcpd listening
# on UDP port 4827.

$wgSquidServersNoPurge = [ '127.0.0.1',
'10.68.18.103', # deployment-cache-text04
'10.68.18.109', # deployment-cache-upload04
];
$wgHTCPRouting = [
'|^https?://upload\.beta\.wmflabs\.org|' => [
'host' => '10.68.18.109', # deployment-cache-upload04
'port' => 4827,
],

# Fallback (text)
'' => [
[
'host' => '10.68.18.103', # deployment-cache-text04
'port' => 4827,
],
],
];