diff --git a/modules/route-proxy/module.json b/modules/route-proxy/module.json index c04555d..aecaca4 100644 --- a/modules/route-proxy/module.json +++ b/modules/route-proxy/module.json @@ -86,6 +86,9 @@ "sh", "-c", "for i in $(seq 1 60); do wget -q -T 10 --no-check-certificate -O /ca/root.crt \"$ACME_ROOTS\" && grep -q 'BEGIN CERTIFICATE' /ca/root.crt && exit 0; sleep 2; done; echo \"the authority at $ACME_ROOTS did not serve its roots within two minutes\" >&2; exit 1" + ], + "restart-on": [ + "acme-env" ] }, { @@ -108,7 +111,11 @@ "TLS_LISTEN": ":443", "ACME_CACHE": "/acme", "ACME_CA_BUNDLE": "/ca/root.crt" - } + }, + "restart-on": [ + "trust", + "acme-env" + ] } ], "build": {