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 "How to edit .lightning/config" #1369

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion docs/FAQ/LightningNetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export LIGHTNING_ALIAS="namehere"

### How to edit lnd.conf?

To customize LND settings which are not available as environment variables, you can [create a custom fragment](../Docker/README.md#how-can-i-customize-the-generated-docker-compose-file) in `docker-compose-generator/docker-fragments/opt-lnd-config.custom.yml` like this:
To customize [LND settings](https://docs.lightning.engineering/lightning-network-tools/lnd/lnd.conf) which are not available as environment variables, you can [create a custom fragment](../Docker/README.md#how-can-i-customize-the-generated-docker-compose-file) in `docker-compose-generator/docker-fragments/opt-lnd-config.custom.yml` like this:

```yml
version: '3'
Expand Down Expand Up @@ -443,6 +443,31 @@ export BTCPAYGEN_ADDITIONAL_FRAGMENTS="bitcoin-clightning.custom"
. ./btcpay-setup.sh -i
```

### How to edit .lightning/config?

To customize the [Core Lightning settings](https://docs.corelightning.org/reference/lightningd-config) which are not available as environment variables, you can [create a custom fragment](../Docker/README.md#how-can-i-customize-the-generated-docker-compose-file) in `docker-compose-generator/docker-fragments/opt-lightningd-config.custom.yml` like this:

```yml
version: '3'
services:
clightning_bitcoin:
environment:
LIGHTNINGD_OPT: |
alias=MyNodeName
rgb=003366
```

You can add your customizations in the `LIGHTNINGD_OPT` value, like shown by setting the `alias` and `rgb` values.

Afterwards the configuration has to be added to the additional fragments and setup needs to be run:

```bash
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;opt-lightningd-config.custom"
. ./btcpay-setup.sh -i
```

This way your custom settings gets added to the config and they will persist updates.

## Lightning Network Questions and Support

Community support for Lightning Network questions is pretty limited, since the protocol is fairly new.
Expand Down
1 change: 1 addition & 0 deletions docs/FAQ/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Lightning Network troubleshooting and common problems.

- [How to restart my Core Lightning (CLN)?](./LightningNetwork.md#how-to-restart-my-core-lightning-cln)
- [How to announce an IPv6 address?](./LightningNetwork.md#how-to-announce-an-ipv6-address)
- [How to edit .lightning/config](./LightningNetwork.md#how-to-edit-lightningconfig)

## [Altcoins FAQ](./Altcoin.md)

Expand Down
Loading