Skip to content

Configuration

The Lightning Multitool is configured using environment variables. For ease of use, you can create a .env file in the root of the project to store your configuration settings. The application will automatically load this file on startup.

To get started, you can copy the example configuration file:

bash
cp .env.example .env

Then, edit the .env file with your desired settings.


Application Config

These settings control the core behavior of the application server.

VariableDescriptionDefault
SERVER_HOSTThe network interface the server listens on. Use 0.0.0.0 to listen on all available interfaces.127.0.0.1
SERVER_PORTThe port the server listens on.8080
NODE_KINDThe kind of Lightning node to connect to. Currently, only lnd is supported.lnd
DOMAINRequired. The domain name for your Lightning Address and Nostr NIP-05 ID (e.g., yourdomain.com).(none)
USERNAMERequired. Your username for the Lightning Address (e.g., satoshi).(none)

LND Connection Config

These settings are required to connect the tool to your LND node.

VariableDescriptionDefault
LND_HOSTThe host and port of your LND node's gRPC interface (e.g., localhost:10009).localhost:8080
LND_MACAROON_PATHThe full path to your LND admin.macaroon file. An invoice macaroon can be used, but it will limit functionality like Zaps.~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
LND_CERT_PATHThe full path to your LND tls.cert file. This is often not needed if the certificate is trusted by the system.(none)

LNURL Config

Customize the behavior of LNURL payments.

VariableDescriptionDefault
MIN_SENDABLE_MSATThe minimum amount, in millisatoshis, that can be sent to your Lightning Address (1 sat = 1000 msat).1000
MAX_SENDABLE_MSATThe maximum amount, in millisatoshis, that can be sent in a single payment.1000000000
COMMENT_ALLOWEDThe maximum character length for comments in payment requests. Set to 0 to disable comments.255

Nostr Config

Configure your Nostr identity for NIP-05 and Zaps.

VariableDescriptionDefault
NOSTR_PRIVATE_KEYRequired for Nostr features. Your Nostr private key in hexadecimal format (64 characters). This is used to sign NIP-05 verification events.(none)