diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 0919b586..0502a727 100644 --- a/docker/caddy/Caddyfile +++ b/docker/caddy/Caddyfile @@ -9,6 +9,7 @@ siasky.net, *.siasky.net, *.hns.siasky.net { tls { dns route53 + ttl 2m } 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