Skip to content

Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go. caddy-cloudflaredns-l4 adds Cloudflare LetsEncrypt support to the base image alongside with L4 for low level networking.

Notifications You must be signed in to change notification settings

kobimx/caddy-cloudflaredns-l4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Release caddy on DockerHub Docker Build

caddy-cloudflaredns-l4

Caddy docker image combining the cloudflaredns and the low level l4 plugins respectively.

Please see the official Caddy Docker Image for deployment instructions.

Builds are available at the following Docker repositories:

Uage:

  1. You should add CLOUDFLARE_EMAIL and CLOUDFLARE_API_TOKEN as environment variables to your docker run command. Example:

    docker run -it --name caddy \
      -p 80:80 \
      -p 443:443 \
      -v caddy_data:/data \
      -v caddy_config:/config \
      -v $PWD/Caddyfile:/etc/caddy/Caddyfile \
      -e [email protected] \
      -e CLOUDFLARE_API_TOKEN=12345 \
      -e ACME_AGREE=true \
      slothcroissant/caddy-cloudflaredns:latest
    

    You can obtain your Cloudflare API token via the Cloudflare Portal. To create a API token with minimal scope, the following steps are needed:

    1. Log into your dashboard, go to account settings, create API token

    2. grant the following permissions:

      • Zone / Zone / Read
      • Zone / DNS / Edit
  2. You should add the following to your Caddyfile as the tls directive.

    tls {$CLOUDFLARE_EMAIL} { 
      dns cloudflare {$CLOUDFLARE_API_TOKEN}
    }
    
  3. Image supports tagging! See available tags here. To select a specific version of caddy, set your Docker image tag to the caddy version you'd like to use.

    Example: kobimex/caddy-cloudflaredns-l4:2.9.1

About

Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go. caddy-cloudflaredns-l4 adds Cloudflare LetsEncrypt support to the base image alongside with L4 for low level networking.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 100.0%