Skip to content
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

Add some documentation for the configuration environment variables #61

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

yaslama
Copy link
Member

@yaslama yaslama commented Feb 9, 2023

No description provided.

@yaslama yaslama requested a review from JssDWt February 9, 2023 18:17
sample.env Outdated
@@ -20,3 +30,16 @@ CHANNELMISMATCH_NOTIFICATION_FROM="Name4 <user4@domain.com>"
USE_MEMPOOL_FEE_ESTIMATION=true
MEMPOOL_API_BASE_URL=https://mempool.space/api/v1/
NODES='[ { "name": "<LSP NAME>", "nodePubkey": "<LIGHTNING NODE PUBKEY>", "lspdPrivateKey": "<LSPD PRIVATE KEY>", "token": "<ACCESS TOKEN>", "host": "<HOSTNAME:PORT for lightning clients>", "publicChannelAmount": "1000183", "channelAmount": "100000", "channelPrivate": false, "targetConf": "6", "minHtlcMsat": "600", "baseFeeMsat": "1000", "feeRate": "0.000001", "timeLockDelta": "144", "channelFeePermyriad": "40", "channelMinimumFeeMsat": "2000000", "additionalChannelCapacity": "100000", "maxInactiveDuration": "3888000", "lnd": { "address": "<HOSTNAME:PORT>", "cert": "<LND_CERT base64>", "macaroon": "<LND_MACAROON hex>" } }, { "name": "<LSP NAME>", "nodePubkey": "<LIGHTNING NODE PUBKEY>", "lspdPrivateKey": "<LSPD PRIVATE KEY>", "token": "<ACCESS TOKEN>", "host": "<HOSTNAME:PORT for lightning clients>", "publicChannelAmount": "1000183", "channelAmount": "100000", "channelPrivate": false, "targetConf": "6", "minHtlcMsat": "600", "baseFeeMsat": "1000", "feeRate": "0.000001", "timeLockDelta": "144", "channelFeePermyriad": "40", "channelMinimumFeeMsat": "2000000", "additionalChannelCapacity": "100000", "maxInactiveDuration": "3888000", "cln": { "pluginAddress": "<address the lsp cln plugin listens on (ip:port)>", "socketPath": "<path to the cln lightning-rpc socket file>" } } ]'
# If lnd is not used, the "lnd" key can be omitted. The same for applies to cln.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion:
lspd can operate on multiple nodes. Multiple lsp's basically. In this example configuration 2 nodes are configured. One cln node and one lnd node. Every node should have either an lnd field or a cln field.

# public key corresponding to this private key and the client encrypt all the
# messages sent to the LSP using this public key.
# The goal is to hide anything from breez-server which is the pass "opaque" data
# from the app to lspd.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe for the node configuration values we can add documentation comments in config.go and refer to that here.

@JssDWt JssDWt self-assigned this Feb 10, 2023
@JssDWt JssDWt merged commit 61bee15 into master Feb 10, 2023
@JssDWt JssDWt deleted the config-documentaion branch February 10, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants