mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 16:12:09 +02:00
Read config from $XDG_CONFIG_HOME/letsencrypt/cli.ini.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
"""Let's Encrypt constants."""
|
"""Let's Encrypt constants."""
|
||||||
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
@@ -8,7 +9,12 @@ SETUPTOOLS_PLUGINS_ENTRY_POINT = "letsencrypt.plugins"
|
|||||||
"""Setuptools entry point group name for plugins."""
|
"""Setuptools entry point group name for plugins."""
|
||||||
|
|
||||||
CLI_DEFAULTS = dict(
|
CLI_DEFAULTS = dict(
|
||||||
config_files=["/etc/letsencrypt/cli.ini"],
|
config_files=[
|
||||||
|
"/etc/letsencrypt/cli.ini",
|
||||||
|
# http://freedesktop.org/wiki/Software/xdg-user-dirs/
|
||||||
|
os.path.join(os.environ.get("XDG_CONFIG_HOME", "~/.config"),
|
||||||
|
"letsencrypt", "cli.ini"),
|
||||||
|
],
|
||||||
verbose_count=-(logging.WARNING / 10),
|
verbose_count=-(logging.WARNING / 10),
|
||||||
server="https://www.letsencrypt-demo.org/acme/new-reg",
|
server="https://www.letsencrypt-demo.org/acme/new-reg",
|
||||||
rsa_key_size=2048,
|
rsa_key_size=2048,
|
||||||
|
|||||||
Reference in New Issue
Block a user