1. The problem I’m having:
Hi guys !
So I’m tying to setup caddy as a reverse proxy to use Jellyfin on the go. But I can’t get the cloudflare DNS module installed, it seems to me the xcaddy build is not working properly despite the build log not showing any errors (see under build log then "caddy list-modules output)
2. Error messages and/or full log output:
root@caddy:~# xcaddy build --with github.com/caddy-dns/cloudflare
2025/07/13 17:44:25 [INFO] absolute output file path: /root/caddy
2025/07/13 17:44:25 [INFO] Temporary folder: /tmp/buildenv_2025-07-13-1744.2819699992
2025/07/13 17:44:25 [INFO] Writing main module: /tmp/buildenv_2025-07-13-1744.2819699992/main.go
package main
import (
caddycmd "github.com/caddyserver/caddy/v2/cmd"
// plug in Caddy modules here
_ "github.com/caddyserver/caddy/v2/modules/standard"
_ "github.com/caddy-dns/cloudflare"
)
func main() {
caddycmd.Main()
}
2025/07/13 17:44:25 [INFO] Initializing Go module
2025/07/13 17:44:25 [INFO] exec (timeout=0s): /usr/local/bin/go mod init caddy
go: creating new go.mod: module caddy
go: to add module requirements and sums:
go mod tidy
2025/07/13 17:44:25 [INFO] Pinning versions
2025/07/13 17:44:25 [INFO] exec (timeout=0s): /usr/local/bin/go get -v github.com/caddyserver/caddy/v2
go: added github.com/beorn7/perks v1.0.1
go: added github.com/caddyserver/caddy/v2 v2.10.0
go: added github.com/caddyserver/certmagic v0.23.0
go: added github.com/caddyserver/zerossl v0.1.3
go: added github.com/cespare/xxhash/v2 v2.3.0
go: added github.com/francoispqt/gojay v1.2.13
go: added github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
go: added github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
go: added github.com/google/uuid v1.6.0
go: added github.com/klauspost/cpuid/v2 v2.2.10
go: added github.com/libdns/libdns v1.0.0-beta.1
go: added github.com/mholt/acmez/v3 v3.1.2
go: added github.com/miekg/dns v1.1.63
go: added github.com/onsi/ginkgo/v2 v2.13.2
go: added github.com/prometheus/client_golang v1.19.1
go: added github.com/prometheus/client_model v0.5.0
go: added github.com/prometheus/common v0.48.0
go: added github.com/prometheus/procfs v0.12.0
go: added github.com/quic-go/qpack v0.5.1
go: added github.com/quic-go/quic-go v0.50.1
go: added github.com/zeebo/blake3 v0.2.4
go: added go.uber.org/mock v0.5.0
go: added go.uber.org/multierr v1.11.0
go: added go.uber.org/zap v1.27.0
go: added go.uber.org/zap/exp v0.3.0
go: added golang.org/x/crypto v0.36.0
go: added golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
go: added golang.org/x/mod v0.24.0
go: added golang.org/x/net v0.38.0
go: added golang.org/x/sync v0.12.0
go: added golang.org/x/sys v0.31.0
go: added golang.org/x/term v0.30.0
go: added golang.org/x/text v0.23.0
go: added golang.org/x/time v0.11.0
go: added golang.org/x/tools v0.31.0
go: added google.golang.org/protobuf v1.35.1
2025/07/13 17:44:27 [INFO] exec (timeout=0s): /usr/local/bin/go get -v github.com/caddy-dns/cloudflare github.com/caddyserver/caddy/v2
go: accepting indirect upgrade from github.com/miekg/dns@v1.1.63 to v1.1.65
go: accepting indirect upgrade from golang.org/x/crypto@v0.36.0 to v0.37.0
go: accepting indirect upgrade from golang.org/x/net@v0.38.0 to v0.39.0
go: accepting indirect upgrade from golang.org/x/sync@v0.12.0 to v0.13.0
go: accepting indirect upgrade from golang.org/x/sys@v0.31.0 to v0.32.0
go: accepting indirect upgrade from golang.org/x/term@v0.30.0 to v0.31.0
go: accepting indirect upgrade from golang.org/x/text@v0.23.0 to v0.24.0
go: accepting indirect upgrade from golang.org/x/tools@v0.31.0 to v0.32.0
go: added github.com/caddy-dns/cloudflare v0.2.1
go: added github.com/libdns/cloudflare v0.2.1
go: upgraded github.com/miekg/dns v1.1.63 => v1.1.65
go: upgraded golang.org/x/crypto v0.36.0 => v0.37.0
go: upgraded golang.org/x/net v0.38.0 => v0.39.0
go: upgraded golang.org/x/sync v0.12.0 => v0.13.0
go: upgraded golang.org/x/sys v0.31.0 => v0.32.0
go: upgraded golang.org/x/term v0.30.0 => v0.31.0
go: upgraded golang.org/x/text v0.23.0 => v0.24.0
go: upgraded golang.org/x/tools v0.31.0 => v0.32.0
2025/07/13 17:44:27 [INFO] exec (timeout=0s): /usr/local/bin/go get -v
2025/07/13 17:44:34 [INFO] Build environment ready
2025/07/13 17:44:34 [INFO] Building Caddy
2025/07/13 17:44:34 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy -e
2025/07/13 17:44:34 [INFO] exec (timeout=0s): /usr/local/bin/go build -o /root/caddy -ldflags -w -s -trimpath -tags nobadger,nomysql,nopgx
2025/07/13 17:44:45 [INFO] Build complete: ./caddy
2025/07/13 17:44:45 [INFO] Cleaning up temporary folder: /tmp/buildenv_2025-07-13-1744.2819699992
././caddy version
v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=
root@caddy:~# caddy list-modules
admin.api.load
admin.api.metrics
admin.api.pki
admin.api.reverse_proxy
caddy.adapters.caddyfile
caddy.config_loaders.http
caddy.filesystems
caddy.listeners.http_redirect
caddy.listeners.proxy_protocol
caddy.listeners.tls
caddy.logging.cores.mock
caddy.logging.encoders.append
caddy.logging.encoders.console
caddy.logging.encoders.filter
caddy.logging.encoders.filter.cookie
caddy.logging.encoders.filter.delete
caddy.logging.encoders.filter.hash
caddy.logging.encoders.filter.ip_mask
caddy.logging.encoders.filter.query
caddy.logging.encoders.filter.regexp
caddy.logging.encoders.filter.rename
caddy.logging.encoders.filter.replace
caddy.logging.encoders.json
caddy.logging.writers.discard
caddy.logging.writers.file
caddy.logging.writers.net
caddy.logging.writers.stderr
caddy.logging.writers.stdout
caddy.network_proxy.none
caddy.network_proxy.url
caddy.storage.file_system
events
http
http.authentication.hashes.bcrypt
http.authentication.providers.http_basic
http.encoders.gzip
http.encoders.zstd
http.handlers.acme_server
http.handlers.authentication
http.handlers.copy_response
http.handlers.copy_response_headers
http.handlers.encode
http.handlers.error
http.handlers.file_server
http.handlers.headers
http.handlers.intercept
http.handlers.invoke
http.handlers.log_append
http.handlers.map
http.handlers.metrics
http.handlers.push
http.handlers.request_body
http.handlers.reverse_proxy
http.handlers.rewrite
http.handlers.static_response
http.handlers.subroute
http.handlers.templates
http.handlers.tracing
http.handlers.vars
http.ip_sources.static
http.matchers.client_ip
http.matchers.expression
http.matchers.file
http.matchers.header
http.matchers.header_regexp
http.matchers.host
http.matchers.method
http.matchers.not
http.matchers.path
http.matchers.path_regexp
http.matchers.protocol
http.matchers.query
http.matchers.remote_ip
http.matchers.tls
http.matchers.vars
http.matchers.vars_regexp
http.precompressed.br
http.precompressed.gzip
http.precompressed.zstd
http.reverse_proxy.selection_policies.client_ip_hash
http.reverse_proxy.selection_policies.cookie
http.reverse_proxy.selection_policies.first
http.reverse_proxy.selection_policies.header
http.reverse_proxy.selection_policies.ip_hash
http.reverse_proxy.selection_policies.least_conn
http.reverse_proxy.selection_policies.query
http.reverse_proxy.selection_policies.random
http.reverse_proxy.selection_policies.random_choose
http.reverse_proxy.selection_policies.round_robin
http.reverse_proxy.selection_policies.uri_hash
http.reverse_proxy.selection_policies.weighted_round_robin
http.reverse_proxy.transport.fastcgi
http.reverse_proxy.transport.http
http.reverse_proxy.upstreams.a
http.reverse_proxy.upstreams.multi
http.reverse_proxy.upstreams.srv
pki
tls
tls.ca_pool.source.file
tls.ca_pool.source.http
tls.ca_pool.source.inline
tls.ca_pool.source.pki_intermediate
tls.ca_pool.source.pki_root
tls.ca_pool.source.storage
tls.certificates.automate
tls.certificates.load_files
tls.certificates.load_folders
tls.certificates.load_pem
tls.certificates.load_storage
tls.client_auth.verifier.leaf
tls.ech.publishers.dns
tls.get_certificate.http
tls.get_certificate.tailscale
tls.handshake_match.local_ip
tls.handshake_match.remote_ip
tls.handshake_match.sni
tls.handshake_match.sni_regexp
tls.issuance.acme
tls.issuance.internal
tls.issuance.zerossl
tls.leaf_cert_loader.file
tls.leaf_cert_loader.folder
tls.leaf_cert_loader.pem
tls.leaf_cert_loader.storage
tls.permission.http
tls.stek.distributed
tls.stek.standard
Standard modules: 127
Non-standard modules: 0
Unknown modules: 0
3. Caddy version:
v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=4. How I installed and ran Caddy:
I installed it using the PVE helper script (https://community-scripts.github.io/ProxmoxVE/scripts?id=caddy)a. System environment:
I'm running proxmox 8.4.0, caddy is installed in an unprivileged LXCb. Command:
xcaddy build --with github.com/caddy-dns/cloudflare
c. My complete Caddy config:
cannot get it to install properlyPASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.