Sign inSign up

ratisbonacoding/nginx-cloudflare-cache

By ratisbonacoding

•Updated almost 5 years ago

Image
0

2.3K

ratisbonacoding/nginx-cloudflare-cache repository overview

⁠nginx-cloudflare-cache

Docker Cloud Build Status

This image can be used as a base image for webservers that utilize Cloudflare's cache to reduce traffic hitting the actual server.

⁠How it works

When starting the container, this image will attempt to purge the Cloudflare cache and then start NGINX with nginx -g "daemon off;", just like in the official NGINX image. See entrypoint.sh⁠ for the whole script.

⁠Environment variables

VariableDescription
CLOUDFLARE_ZONE_IDThe v4 zone id for your Cloudflare site
CLOUDFLARE_PURGE_TOKENYour API token to purge a site's cache

⁠License

This repository is released under the MIT license⁠.

Tag summary

Content type

Image

Digest

Size

9.7 MB

Last updated

almost 5 years ago

docker pull ratisbonacoding/nginx-cloudflare-cache