mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:34:41 +02:00
Introduce proper renewer config via constants.py
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user