Skip to content
DnsLister Forum

Where domain hunters compare notes

Reverse Proxy and Cloudflare

Hi everyone im currently trying to setup a reverse proxy with caddy using cloudflare, i have tried the caddybuilds docker image and the self build xcaddy image with the cloudflare plugin but i am not able to get it to work

i have the following things already setup
A Record – Public IP pointing to root of domain
AAAA Record – Publich IP pointing to root of domain
CNAME – with www
bash scripts for updating the records (dyndns)
API token wiht zone – dns – edit and zone – zone – read

I am running it in a podman pod
I have the api token in an .env file
All ports are already allowed in the firewall and also port forwarded

podman volume create caddy
podman run --detach --name caddy --pod net --replace --volume caddy:/srv --volume caddy:/data --volume caddy:/config --volume /mnt/pods/raspi/net/Caddyfile:/etc/caddy/Caddyfile --env-file .env --cap-add NET_ADMIN caddy-img

When it comes to the Caddyfile i looked at multiple videos tried the example config from the caddybuilds image none worked

What am i doing wron?

Source: r/selfhosted · by /u/-Arsna-

Leave a Reply

Your email address will not be published. Required fields are marked *