Commit graph

14 commits

Author SHA1 Message Date
Maurice Poirrier Chuden
a2b42b5a79
server: default lndk conf in lndk dir
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.
2024-12-14 16:54:34 -03:00
Matthew Rheaume
7335927af5 Fall back to data_dir if log_file is unspecified. 2024-11-18 22:21:13 -08:00
Matthew Rheaume
a47a2ff5a9 Renamed log_dir configuration to log_file.
This is expected to be passed in as a file, not a directory, so change
the name to reflect that fact.
2024-11-18 22:18:15 -08:00
Matthew Rheaume
0ec2e808ca Added data_dir configuration options.
In certain deployment scenarios, we may not want (or be able) to write
to the default ~/.lndk data directory. For example, the home directory
may be mounted as read-only, or mounted using ephemeral storage.

This change adds a new `data_dir` configuration option to specify where
LNDK should store data. If this option isn't specified, then falls back
to the default ~/.lndk.
2024-11-11 12:14:56 -08:00
UK
8d34e5ba4c Make rate limits configureable.
Add 'rate_limit_count' and 'rate_limit_period' to configuration option.
2024-10-15 10:28:26 +09:00
Maurice Poirrier Chuden
856eb68c1f
multi: Configurable timeout for receiving invoice
This commit introduces a parameter in the RPC to allow users to modify
the timeout when receiving an invoice from the offer creator.

Additionally, it adds a configuration parameter for the server to set
up a default value if no parameter is used.

The default timeout value is also decreased from 100 seconds to 20
seconds.
2024-08-09 22:41:11 +02:00
Orbital
fad8a4802c
cfg: pass in extra ips to tls certificate 2024-07-22 18:34:53 -05:00
UK
691363ee21 Add skip-version-check option.
LNDK verifies that the version of LND running alongside it is compatible with LNDK.
If users need to bypass this version check for any reason, they can use the skip-version-check option.
2024-07-16 10:18:06 +09:00
Orbital
ba23bcdc91
config: clarify where log file is stored by default 2024-06-18 23:33:31 -05:00
Orbital
eb321f384c
main: add grpc server config options
Co-authored-by: Tom <tom@strike.me>
2024-05-29 22:58:29 -05:00
Orbital
9735c2c95f
multi: add option to pass cert/macaroon in directly to lndk 2024-05-21 14:23:21 -05:00
Orbital
fe1601cf47
main: add config option for specifying log level 2024-03-19 15:54:31 -05:00
Orbital
7d79e064d2
main: replace simple logger with log4rs 2023-11-08 13:02:48 -06:00
ismaelsadeeq
97e904f72b use configure_me crate to manage argument parsing
build.rs generates the configure_me structs.

config_spec.toml specifies all command line arguments needed,
their type and descriptions.

Removed ArgsError enum, it's display trait, and parse_args subroutine
since they are no longer needed.

updates the documentation accordingly.
2023-04-06 16:06:18 +01:00