-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server: Config defaults to root and Datadir #193
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #193 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 1 1
Lines 135 149 +14
======================================
- Misses 135 149 +14 ☔ View full report in Codecov by Sentry. |
Thanks. I'll have a closer look this weekend. Catching up. |
I'm happy to have this PR be the "follow-up" to #192 as discussed in #192 (comment) 😄. Would you be okay to broaden the scope a bit as I imagine there's a dependency there anyway? |
@dunxen sure, i'll take it! |
#192 has been merged now if that helps! |
@dunxen ty! I'll take over it |
16eaaac
to
46959fa
Compare
I guess code coverage is broken? |
Yeah I'll sort that out. No worries. |
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.
46959fa
to
a2b42b5
Compare
Should close #183
In this PR
Similar to bitcoin
~/.bitcoin/bitcoin.conf
and~/.lnd/lnd.conf
, we add ~./lndk as default path to store conf file.Added some prevalence root project conf.file wouldn't be overriden by lndk dir conf file.
We move the datadir to defaults to
~/.lndk/data
. If~/.lndk
does not exists, it tries to create it.We don't store it inside networks yet as LNDK does not have a concept of network in server, but it does using cli
How can i test it?
Add some files with different configurations:
lndk.conf
in root project~/.lndk/lndk.conf
Test which configurations are used. Easy way to do it is to point to different lnd servers and point
address
in each file to each of them.Why this?
Standardness and ease when deploying