diff --git a/docs/FAQ/LightningNetwork.md b/docs/FAQ/LightningNetwork.md index 634ab6fe87..21b56ab8e9 100644 --- a/docs/FAQ/LightningNetwork.md +++ b/docs/FAQ/LightningNetwork.md @@ -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' @@ -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. diff --git a/docs/FAQ/README.md b/docs/FAQ/README.md index cf7f1a9bfb..fe6d44ef74 100644 --- a/docs/FAQ/README.md +++ b/docs/FAQ/README.md @@ -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)