diff --git a/tools/ansible/vars/deploy_vars.yml b/tools/ansible/vars/deploy_vars.yml index b6de1e8..a809fc6 100644 --- a/tools/ansible/vars/deploy_vars.yml +++ b/tools/ansible/vars/deploy_vars.yml @@ -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; +