- Add caddy.env to gitignore for sensitive DNS credentials - Replace manual SSL certificates with Let's Encrypt DNS challenge using Namecheap - Build custom Caddy image with namecheap DNS plugin - Configure wildcard SSL for *.lan.poldebra.me domain - Update docker-compose to use custom Caddy build and environment file Note: we had to downgrade to Caddy 2.9, see https://github.com/caddy-dns/namecheap/issues/14 for more information
8 lines
172 B
Docker
8 lines
172 B
Docker
from caddy:2.9-builder-alpine as builder
|
|
|
|
run xcaddy build \
|
|
--with github.com/caddy-dns/namecheap
|
|
|
|
from caddy:alpine
|
|
copy --from=builder /usr/bin/caddy /usr/bin/caddy
|