Introduce proper renewer config via constants.py

This commit is contained in:
Seth Schoen
2015-05-18 15:57:12 -07:00
parent 83b0e0a20e
commit 8f25241170
4 changed files with 40 additions and 19 deletions
+13
View File
@@ -1,4 +1,5 @@
"""Let's Encrypt constants."""
import configobj
import logging
from acme import challenges
@@ -25,6 +26,18 @@ CLI_DEFAULTS = dict(
"""Defaults for CLI flags and `.IConfig` attributes."""
RENEWER_DEFAULTS = configobj.ConfigObj(dict(
renewer_config_file="/etc/letsencrypt/renewer.conf",
renewal_configs_dir="/etc/letsencrypt/configs",
archive_dir="/etc/letsencrypt/archive",
live_dir="/etc/letsencrypt/live",
renewer_enabled="yes",
renew_before_expiry="30 days",
deploy_before_expiry="20 days",
))
"""Defaults for renewer script."""
EXCLUSIVE_CHALLENGES = frozenset([frozenset([
challenges.DVSNI, challenges.SimpleHTTPS])])
"""Mutually exclusive challenges."""