shorten timeout on loopia dns acme-challange

This commit is contained in:
Fredrik Eriksson 2021-05-12 09:11:54 +02:00
parent 107dd3f5ef
commit ad247f6922
Signed by: feffe
GPG Key ID: F4329687B0FA7F8D

View File

@ -27,7 +27,9 @@ def main():
domain = os.environ['CERTBOT_DOMAIN'] domain = os.environ['CERTBOT_DOMAIN']
subdomain = '_acme-challenge' subdomain = '_acme-challenge'
token = os.environ['CERTBOT_VALIDATION'] token = os.environ['CERTBOT_VALIDATION']
waittime = 600 # According to inside sources: "If it takes longer than 2 minutes,
# something is probably wrong". Adding an extra minute to be sure.
waittime = 180
else: else:
parser = argparse.ArgumentParser(description='Update acme-record for subdomain') parser = argparse.ArgumentParser(description='Update acme-record for subdomain')
parser.add_argument('--domain', '-d', nargs=1, required=True, help='domain to update') parser.add_argument('--domain', '-d', nargs=1, required=True, help='domain to update')