Skip to content

nghialele/caddy-crowdsec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

caddy-porkbun-crowdsec

Caddy Docker image with the following modules included:

Why?

Forked from https://github.com/encg/caddy-cloudflare-crowdsec for personal use since a lot of my domains was on Porkbun. The contents below is from the original repo. I will edit to my version along the way.

Usage

docker-compose.yml

version: "3.8"
services:
  caddy:
    image: encg/caddy-cloudflare-crowdsec
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - $PWD/Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
      - caddy_config/config

volumes:
  caddy_data:
    external: true
  caddy_config:

.env

PORKBUN_API_KEY=changeme
PORKBUN_API_SECRET_KEY=changeme
CS_LOCAL_API_KEY=crowdsec_local_api_key

Caddyfile

{
	acme_dns porkbun {
			api_key {env.PORKBUN_API_KEY}
			api_secret_key {env.PORKBUN_API_SECRET_KEY}
	}

	crowdsec {
		api_url http://crowdsec:8080
		api_key {$CS_LOCAL_API_KEY}
		ticker_interval 15s
		#disable_streaming
		#enable_hard_fails
	}
}

Refer to the respective projects for further documentation:

About

Caddy Docker image with CrowdSec bouncer modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%