Skip to content

Commit 07fff88

Browse files
committed
services: Adjust lego timeouts/resolvers
1 parent 81fe7e4 commit 07fff88

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

services/nomad/infrastructure/lego.nomad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ job "lego" {
1818
}
1919

2020
config {
21-
image = "ghcr.io/void-linux/infra-lego:v20210923RC04"
21+
image = "ghcr.io/void-linux/infra-lego:v20211216RC02"
2222
}
2323

2424
env {
2525
VAULT_ADDR="http://active.vault.service.consul:8200"
2626
ACTION="renew"
27-
DO_PROPAGATION_TIMEOUT="10m"
27+
DO_PROPAGATION_TIMEOUT="600"
2828
}
2929

3030
template {

services/pkg/lego/lego.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
: "${ACTION:=renew}"
44
: "${SERVER:=https://acme-v02.api.letsencrypt.org/directory}"
5-
: "${DO_PROPAGATION_TIMEOUT=15m}"
5+
: "${DO_PROPAGATION_TIMEOUT=900}"
66

77
export DO_PROPAGATION_TIMEOUT
88

@@ -25,14 +25,12 @@ mkdir -p secret/lego/data
2525
handle_path secret/lego/data
2626
cp -r secret/lego/data pre-run
2727

28-
29-
# Need to dynamically choose whether to run or renew here. Plausibly
30-
# easier to just run it once and then change the arguments.
3128
lego \
3229
--accept-tos \
3330
--email maldridge@voidlinux.org \
3431
--path secret/lego/data \
3532
--dns digitalocean \
33+
--dns.resolvers 8.8.8.8:53 \
3634
--domains '*.voidlinux.org' \
3735
--domains '*.s.voidlinux.org' \
3836
--server $SERVER \

0 commit comments

Comments
 (0)