From f2c9c774d2856b1f1984d83197f1cd9206c761e6 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 28 Sep 2020 10:24:14 +0200 Subject: [PATCH 1/3] update caddy --- docker/caddy/Caddyfile | 1 + docker/caddy/Dockerfile | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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 From 25ebea697dc9d34f0fe4f6d72d2dba7200432f9d Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 28 Sep 2020 10:50:11 +0200 Subject: [PATCH 2/3] adjust max retries --- docker/caddy/Caddyfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 0502a727..586dc028 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 100 + } ttl 2m } reverse_proxy nginx:80 From 970cf8caf749bb3d1357eda704be62e34c67fa9a Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 28 Sep 2020 10:57:47 +0200 Subject: [PATCH 3/3] set max retries to something big --- docker/caddy/Caddyfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 586dc028..a5a92e8a 100644 --- a/docker/caddy/Caddyfile +++ b/docker/caddy/Caddyfile @@ -9,9 +9,8 @@ siasky.net, *.siasky.net, *.hns.siasky.net { tls { dns route53 { - max_retries 100 + max_retries 50 } - ttl 2m } reverse_proxy nginx:80 }