Skip to content

Install mod_cloudflare for APACHE or configure header for NGINX

Notifications You must be signed in to change notification settings

matterstech/ansible-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-cloudflare

Install mod_cloudflare for apache or configure NGINX to get real IP when using cloudflare.

Apache

This role will download, compile and install mod_cloudflare for apache more information on cloudflare website

Nginx

This role will add configuration file into /etc/nginx/conf.d/ to ensure all IP's from cloudflare are set and configured to use real IP more information on cloudflare website

Requirements

Installed apache2 or nginx

Role Variables

ansible_cloudflare_server: should be "apache2" or "nginx" depending on which server you have installed on you machine

Dependencies

No dependencies

Example Playbook

Apache

- hosts: servers
  roles:
     - { role: ansible-cloudflare, ansible_cloudflare_server: apache2 }

Nginx

- hosts: servers
  roles:
     - { role: ansible-cloudflare, ansible_cloudflare_server: nginx }

License

BSD

Author Information

Created by Alexis von Glasow for Inovia