mirror of
https://github.com/lndk-org/lndk.git
synced 2026-08-13 12:33:05 +02:00
LNDK is already using a datadir to store TLS certificates. In this PR we default LNDK config and data to ~/.lndk. Datadir is moved inside the default dir ~/.lndk/data. Then, we expect lndk.conf file to be iether in root of the project, or the default LNDK config folder or --config flag. Precedence is flag > root > default dir.
90 lines
2.5 KiB
TOML
90 lines
2.5 KiB
TOML
[general]
|
|
conf_file_param = "conf"
|
|
|
|
[[param]]
|
|
name = "address"
|
|
type = "String"
|
|
optional = false
|
|
doc = "LND GRPC address, kindly note that the address must start with https:// ip address : port."
|
|
|
|
[[param]]
|
|
name = "cert_path"
|
|
type = "std::path::PathBuf"
|
|
optional = true
|
|
doc = "The path to LND tls certificate file. Note: the abosolute tls certificate file path is required here."
|
|
|
|
[[param]]
|
|
name = "cert_pem"
|
|
type = "String"
|
|
optional = true
|
|
doc = "The PEM-encoded tls certificate to pass directly into LNDK."
|
|
|
|
[[param]]
|
|
name = "tls_ip"
|
|
type = "String"
|
|
optional = true
|
|
doc = "Add an ip or domain to the certificate used to access the LNDK server. To add multiple ip addresses, separate each ip address with a comma. Like: '192.168.0.1,lndkisdope.org'"
|
|
|
|
[[param]]
|
|
name = "macaroon_path"
|
|
type = "std::path::PathBuf"
|
|
optional = true
|
|
doc = "The path to LND macaroon file. Note: the abosolute macaroon file path is required here."
|
|
|
|
[[param]]
|
|
name = "macaroon_hex"
|
|
type = "String"
|
|
optional = true
|
|
doc = "The hex encoded macaroon to pass directly into LNDK"
|
|
|
|
[[param]]
|
|
name = "data_dir"
|
|
type = "String"
|
|
doc = "The path to the lndk data directory. By default this is stored in ~/.lndk/data"
|
|
|
|
[[param]]
|
|
name = "log_file"
|
|
type = "String"
|
|
doc = "The path to the lndk log file. If not specified, defaults to `<data_dir>/lndk.log`."
|
|
|
|
[[param]]
|
|
name = "log_level"
|
|
type = "String"
|
|
optional = true
|
|
doc = "The log verbosity level. This can be set to either 'error', 'warn', 'info', 'debug' or 'trace'."
|
|
|
|
[[param]]
|
|
name = "grpc_host"
|
|
type = "String"
|
|
optional = true
|
|
doc = "The host the grpc server will run on. Defaults to 127.0.0.1."
|
|
|
|
[[param]]
|
|
name = "grpc_port"
|
|
type = "u16"
|
|
optional = true
|
|
doc = "The port the grpc server will run on. Defaults to 7000."
|
|
|
|
[[param]]
|
|
name = "skip_version_check"
|
|
type = "bool"
|
|
default = "false"
|
|
doc = "Skip checking the LND version. Otherwise, LNDK checks that the LND version is compatible with LNDK."
|
|
|
|
[[param]]
|
|
name = "response_invoice_timeout"
|
|
type = "u32"
|
|
optional = true
|
|
doc = "Amount of time in seconds that server waits for an offer creator to respond with an invoice. Defaults to 15s."
|
|
|
|
[[param]]
|
|
name = "rate_limit_count"
|
|
type = "u8"
|
|
default = "10"
|
|
doc = "The number of calls each peer is allowed to make within the rate limit period. This value determines the maximum number of requests a peer can send before being rate limited."
|
|
|
|
[[param]]
|
|
name = "rate_limit_period_secs"
|
|
type = "u64"
|
|
default = "1"
|
|
doc = "The duration of the rate limit period in seconds. This value specifies the time window over which the rate limit count is applied."
|