Commit 8dbfed00 authored by Jonathan Hunt's avatar Jonathan Hunt

Set Catalyst reverse proxy and Squid proxy config for Production.

parent 3181bcd3
......@@ -66,6 +66,21 @@ switch ($environment) {
$conf['flog_enabled'] = TRUE;
$conf['flog_path'] = $conf['file_directory_path'];
$conf['flog_file'] = 'drupal-7eb632827cb0dc1f255b7d1957a07c9737ba2ce9.log';
// Production is behind Varnish
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array('127.0.0.1');
$conf['reverse_proxy_header'] = 'HTTP_X_FORWARDED_FOR';
$conf['block_cache'] = FALSE;
$conf['cache_lifetime'] = '3600';
$conf['page_cache_maximum_age'] = '3600';
// Uncomment this when varnish is working, this prevents double caching of the page.
$conf['cache_class_cache_page'] = 'DrupalFakeCache';
// Connection details for Catalyst Squid proxies.
$conf['proxy_server'] = 'ext-proxy-prod.catalyst.net.nz';
$conf['proxy_port'] = '3128';
$conf['proxy_exceptions'] = array('cat-chcsc-prod-solr1.servers.catalyst.net.nz');
break;
case 'staging-catalyst':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment