Skip to main content

Setup Caddy Reverse Proxy

Add reverse proxy ip address to your services.

File /etc/caddy/Caddyfile

domain.duckdns.org {
reverse_proxy 127.0.0.1:8080
tls {
dns duckdns {
api_token your-token-here
}
}
}
## add more below

Check port listening

sudo netstat -ntulp | grep 80

Install xcaddy for module building - need latest go version 1.20

Need superuser access if you are using on DietPi

Module : https://caddyserver.com/docs/modules/dns.providers.duckdns

xcaddy build --with github.com/caddy-dns/duckdns
xcaddy build --with github.com/caddy-dns/cloudflare

Move built caddy binary to /usr/bin/caddy

sudo mv caddy /usr/bin/caddy
sudo chmod 755 /usr/bin/caddy

Change directory into /etc/Caddy

caddy run

docker caddy might need to build with custom module

https://hub.docker.com/_/caddy

[[setup-pi-hole-for-raspberry-pi]] [[setup-deluge-for-raspberry-pi]] [[setup-raspberry-pi]]