mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Docs in CONFIG
This commit is contained in:
parent
59a7559c05
commit
5b4d70c234
1 changed files with 46 additions and 25 deletions
|
|
@ -1,62 +1,83 @@
|
|||
"""Config for Let's Encrypt."""
|
||||
import os.path
|
||||
|
||||
# CA hostname
|
||||
# If you create your own server... change this line
|
||||
# Note: the server certificate must be trusted in order to avoid
|
||||
# further modifications to the client
|
||||
|
||||
ACME_SERVER = "letsencrypt-demo.org"
|
||||
# Apache server root directory
|
||||
"""CA hostname.
|
||||
|
||||
If you create your own server... change this line
|
||||
|
||||
Note: the server certificate must be trusted in order to avoid
|
||||
further modifications to the client."""
|
||||
|
||||
SERVER_ROOT = "/etc/apache2/"
|
||||
# Configuration file directory for letsencrypt
|
||||
"""Apache server root directory"""
|
||||
|
||||
CONFIG_DIR = "/etc/letsencrypt/"
|
||||
# Working directory for letsencrypt
|
||||
"""Configuration file directory for letsencrypt"""
|
||||
|
||||
WORK_DIR = "/var/lib/letsencrypt/"
|
||||
# Directory where configuration backups are stored
|
||||
"""Working directory for letsencrypt"""
|
||||
|
||||
BACKUP_DIR = os.path.join(WORK_DIR, "backups/")
|
||||
# Replaces MODIFIED_FILES, directory where temp checkpoint is created
|
||||
"""Directory where configuration backups are stored"""
|
||||
|
||||
TEMP_CHECKPOINT_DIR = os.path.join(WORK_DIR, "temp_checkpoint/")
|
||||
# Directory used before a permanent checkpoint is finalized
|
||||
"""Replaces MODIFIED_FILES, directory where temp checkpoint is created"""
|
||||
|
||||
IN_PROGRESS_DIR = os.path.join(BACKUP_DIR, "IN_PROGRESS/")
|
||||
# Directory where all certificates/keys are stored - used for easy revocation
|
||||
"""Directory used before a permanent checkpoint is finalized"""
|
||||
|
||||
CERT_KEY_BACKUP = os.path.join(WORK_DIR, "keys-certs/")
|
||||
# Where all keys should be stored
|
||||
"""Directory where all certificates/keys are stored.
|
||||
|
||||
Used for easy revocation"""
|
||||
|
||||
KEY_DIR = os.path.join(SERVER_ROOT, "ssl/")
|
||||
# Certificate storage
|
||||
"""Where all keys should be stored"""
|
||||
|
||||
CERT_DIR = os.path.join(SERVER_ROOT, "certs/")
|
||||
"""Certificate storage"""
|
||||
|
||||
# Contains standard Apache SSL directives
|
||||
OPTIONS_SSL_CONF = os.path.join(CONFIG_DIR, "options-ssl.conf")
|
||||
# Let's Encrypt SSL vhost configuration extension
|
||||
"""Contains standard Apache SSL directives"""
|
||||
|
||||
LE_VHOST_EXT = "-le-ssl.conf"
|
||||
# Temporary file for challenge virtual hosts
|
||||
"""Let's Encrypt SSL vhost configuration extension"""
|
||||
|
||||
APACHE_CHALLENGE_CONF = os.path.join(CONFIG_DIR, "le_dvsni_cert_challenge.conf")
|
||||
"""Temporary file for challenge virtual hosts"""
|
||||
|
||||
# Byte size of S and Nonce
|
||||
S_SIZE = 32
|
||||
"""Byte size of S"""
|
||||
|
||||
NONCE_SIZE = 16
|
||||
"""byte size of Nonce"""
|
||||
|
||||
# Key Sizes
|
||||
RSA_KEY_SIZE = 2048
|
||||
"""Key size"""
|
||||
|
||||
# bits of hashcash to generate
|
||||
DIFFICULTY = 23
|
||||
"""bits of hashcash to generate"""
|
||||
|
||||
# Let's Encrypt cert and chain files
|
||||
CERT_PATH = CERT_DIR + "cert-letsencrypt.pem"
|
||||
"""Let's Encrypt cert file."""
|
||||
|
||||
CHAIN_PATH = CERT_DIR + "chain-letsencrypt.pem"
|
||||
"""Let's Encrypt chain file."""
|
||||
|
||||
# Invalid Extension
|
||||
INVALID_EXT = ".acme.invalid"
|
||||
"""Invalid Extension"""
|
||||
|
||||
# Challenge Preferences Dict for currently supported challenges
|
||||
CHALLENGE_PREFERENCES = ["dvsni", "recoveryToken"]
|
||||
"""Challenge Preferences Dict for currently supported challenges"""
|
||||
|
||||
# Mutually Exclusive Challenges - only solve 1
|
||||
EXCLUSIVE_CHALLENGES = [frozenset(["dvsni", "simpleHttps"])]
|
||||
"""Mutually Exclusive Challenges - only solve 1"""
|
||||
|
||||
# These are challenges that must be solved by a Configurator object
|
||||
CONFIG_CHALLENGES = frozenset(["dvsni", "simpleHttps"])
|
||||
"""These are challenges that must be solved by a Configurator object"""
|
||||
|
||||
# Rewrite rule arguments used for redirections to https vhost
|
||||
REWRITE_HTTPS_ARGS = [
|
||||
"^.*$", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,R=permanent]"]
|
||||
"""Rewrite rule arguments used for redirections to https vhost"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue