- Domain with Cloudflare DNS
- Docker and Docker Compose installed
- Basic understanding of Docker networking
Copy the environment template and configure:
cp .env.example .envEdit .env and add your Cloudflare API token
certificatesResolvers:
cloudflare:
acme:
email: email@domain.com # <-- Change this to your email# Update geoblock configuration
ar-only:
plugin:
geoblock:
allowedIPAddresses:
- "YOUR.VPS.IP" # Add your VPS IP if outside your country
countries:
- AR # your country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
# Update CrowdSec configuration
crowdsec:
plugin:
bouncer:
crowdsecLapiKey: ##REPLACE_API_KEY## # Replace CrowdSec API key (docker exec crowdsec cscli bouncers add
forwardedHeadersTrustedIPs:
- "YOUR.VPS.IP" # Add your reverse proxy IPdocker network create proxy
docker network create crowd
chmod 600 ./certs
cd crowdsec
docker compose up -d
docker exec crowdsec cscli bouncers add crowdsecBouncer