Skip to content

Commit

Permalink
Cloudflare reverse proxy cache configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Aug 31, 2020
1 parent 7b21eff commit 474337c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/developer/first-steps/manual_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,41 @@ to each configured proxy **when user clears back-office caches**, and it will cr
in order to receive and handle ``BAN`` and ``PURGE`` HTTP requests.


Cloudflare proxy cache
^^^^^^^^^^^^^^^^^^^^^^

If you are using Cloudflare as a reverse proxy cache, you can configure Roadiz to send requests to Cloudflare
to purge all items or files (when editing a node-source). You need to gather following information:

- Cloudflare zone identifier
- Cloudflare API credentials (Bearer token or email + auth-key)

Then you can configure Roadiz with Bearer token:

.. code-block:: yaml
reverseProxyCache:
frontend: []
cloudflare:
zone: cloudflare-zone
bearer: ~
Or with your Email and AuthKey:

.. code-block:: yaml
reverseProxyCache:
frontend: []
cloudflare:
zone: cloudflare-zone
email: ~
key: ~
.. note::

Roadiz uses *Purge all files* and *Purge Files by URL* entry points: https://api.cloudflare.com/#zone-purge-all-files
which are available on all Cloudflare plans.

Entities paths
--------------

Expand Down

0 comments on commit 474337c

Please sign in to comment.