Set reverse proxy settings for Cloudflare

This commit is contained in:
Oliver Davies 2020-05-26 22:10:52 +01:00
parent 4d3e0901d2
commit 60f98037df

View file

@ -43,3 +43,10 @@ drupal_settings:
];
$config['config_split.config_split.live']['status'] = TRUE;
// Configure Cloudflare.
$settings['reverse_proxy'] = TRUE;
$settings['reverse_proxy_addresses'] = [$_SERVER['REMOTE_ADDR']];
$settings['reverse_proxy_header'] = 'CF-Connecting-IP';
$settings['omit_vary_cookie'] = TRUE;