diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 0919b586..a5a92e8a 100644 --- a/docker/caddy/Caddyfile +++ b/docker/caddy/Caddyfile @@ -8,7 +8,9 @@ (siasky.net) { siasky.net, *.siasky.net, *.hns.siasky.net { tls { - dns route53 + dns route53 { + max_retries 50 + } } reverse_proxy nginx:80 } diff --git a/docker/caddy/Dockerfile b/docker/caddy/Dockerfile index d0f22045..7b670287 100644 --- a/docker/caddy/Dockerfile +++ b/docker/caddy/Dockerfile @@ -1,7 +1,8 @@ -FROM caddy:2.1.1-builder AS caddy-builder +FROM caddy:2.2.0-builder AS caddy-builder -RUN caddy-builder github.com/caddy-dns/cloudflare github.com/caddy-dns/route53 +# available dns resolvers: https://github.com/caddy-dns +RUN xcaddy build --with github.com/caddy-dns/route53 -FROM caddy:2.1.1 +FROM caddy:2.2.0 COPY --from=caddy-builder /usr/bin/caddy /usr/bin/caddy