Skip to content

csr_proxy.config

Config class.

Config dataclass

Bases: object

The service's configuration.

Attributes:

Name Type Description
api_host str

API host to listen.

api_port int

API port to listen.

valid_subj str

Certificate subject to pass.

state_path Path

A path to store ACME client state. Must be readable and writable.

email str

An email to register on ACME service.

acme_directoy str

ACME directory URL.

pdns_api_url str

Root URL of the PowerDNS api.

pdns_api_key str

API key to authorize on PowerDNS.

eab_kid Optional[str]

Optional external account binding key id.

eab_hmac Optional[str]

Optional external account binding HMAC (base64).

domain: str cached property

Get domain name.

Returns:

Type Description
str

Domain name.

default() classmethod

Get default config.

Returns:

Type Description
Config

Config instance.

read(prefix='CSR_PROXY_') classmethod

Read config from environment.

Returns:

Type Description
Config

Config instance.