Code Monkey home page Code Monkey logo

cloudflare-cpanel's Introduction

CloudFlare plugin for CPanel.

Requires: 

 * Net::SSLeay
 * Simplezoneedit or Zoneedit features

Provides access to the CloudFlare service. Learn more about CloudFlare at cloudflare.com.

First, acquire a host api key from CloudFlare. 

Install (as root):

./install_cf HOST_API_KEY [mod_cf] [Provider Name]

This works for the default theme and locale. Other themes or locales may require custom work. 
Replace HOST_API_KEY with your api key. Adding the string mod_cf will also install the Apache 
extension mod_cloudflare on the local server. More information is available here: 
https://github.com/cloudflare/CloudFlare-Tools.

Edit API key:

If you need to, update your API key by editing the file /usr/local/cpanel/etc/cloudflare.json, updating 
the value host_key.

Edit CloudFlare prefix:

After having been routed through the CloudFlare network, if the traffic is clean and cannot be handled by 
the CloudFlare cache, it will be relayed to a single given subdomain. Be default, this is 
cloudflare-resolve-to.example.com (replacing example.com with each user's domain). 
If you wish to change the subdomain, edit the file /usr/local/cpanel/etc/cloudflare.json, 
changing the value of the host_prefix key to the desired subdomain. This subdomain will be 
automatically added to each user's zone file.

Uninstall: 

/usr/local/cpanel/bin/unregister_cpanelplugin <full path to install file cloudflare.cpanelplugin>

Customization:

To include customized text, edit the file /usr/local/cpanel/etc/cloudflare_local.tmpl. This file is included in CloudFlare's HTML template.

Command Line Tools:

List all zones currently active on CloudFlare:
# perl Cpanel/CloudFlare.pm list

Check to see if there is a new version of the CloudFlare plug-in available.
# perl Cpanel/CloudFlare.pm check


Copyright (c) 2011 by CloudFlare, Inc.
All Rights Reserved.

cloudflare-cpanel's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.