alby-hub/.env.example
daywalker90 28706ecf31
feat: add CLN backend (#2026)
* feat: add CLN as a lnclient backend

* feat: add hold invoice support for CLN backend

* fix: reduce CLN form to just addresses and lightning dir

* feat: add README for CLN grpc go code generation

* fix: cln backend does not support keysend with given preimages

* fix: hold invoice notifications in CLN backend

* fix: remove dead code in CLN backend from ListTransactions

* fix: env example CLN_ADDRESS_HOLD with different port to show it's a different service

* fix: cleanup of CLN ressources in all cases

* fix: cln backend's GetNetworkGraph only fetches specified nodeId's

* fix: cln backend: only advertise hold methods for nip47 if hold plugin enabled

* fix: cln's Shutdown should not stop CLN itself

* fix: relax the LND README line regarding env configuration

* fix: more nil checks in clnInvoiceToTransaction

* fix: prevent feerate overflow in CLN's RedeemOnchainFunds

* fix: don't access nil errors for empty reponses of certain CLN methods

* fix: nil instead of empty string in cln's GetNetworkGraph return types

* fix: nil checks for created_at in cln's clnInvoiceToTransaction

* fix: set minimum tls version to 1.2 for cln backend grpc connections

* fix: cln's subscribeOpenHoldInvoices doesn't give up as fast

* fix: deduplicate graph edges in cln's GetNetworkGraph

* fix: print the error string, not pointer address, in cln's ListChannels

* fix: remove cln's ListTransactions completely

* fix: use ListPeers instead of ListPeerChannels in cln's ListPeers

* feat: cln's MakeHoldInvoice supports minCltvExpiryDelta

* fix: use named return err in NewCLNService

* fix: cln listpeers log message

* fix: incorrect import

* fix: compile errors after rename

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2026-05-03 12:36:13 -07:00

52 lines
1.5 KiB
Text

# only enable event logging in production
SEND_EVENTS_TO_ALBY=false
# do not link your current account when you run a dev instance (so it stays pointing at your mainnet one)
AUTO_LINK_ALBY_ACCOUNT=false
# Optionally set LDK debug log level to get more info
#LDK_LOG_LEVEL=5
# Optionally set Main application debug log level to get more info
#LOG_LEVEL=5
# Base URL required for custom OAuth client
#BASE_URL=http://localhost:8080
# Development settings (yarn dev:http)
FRONTEND_URL=http://localhost:5173
#REBALANCE_SERVICE_URL=https://lsp1.mutiny.megalith-node.com
#AUTO_UNLOCK_PASSWORD=123
#WORK_DIR=.data
#DATABASE_URI=nwc.db
#RELAY=wss://relay.getalby.com/v1
#RELAY=ws://localhost:7447/v1
#PORT=8080
#LOG_DB_QUERIES=true
# Alby OAuth configuration
#ALBY_OAUTH_CLIENT_SECRET=
#ALBY_OAUTH_CLIENT_ID=
# Polar LND Client
#LN_BACKEND_TYPE=LND
#LND_CERT_FILE=/home/YOUR_USERNAME/.polar/networks/1/volumes/lnd/alice/tls.cert
#LND_ADDRESS=127.0.0.1:10001
#LND_MACAROON_FILE=/home/YOUR_USERNAME/.polar/networks/1/volumes/lnd/alice/data/chain/bitcoin/regtest/admin.macaroon
#LDK_VSS_URL="http://localhost:8090/vss"
# Boltz API
#BOLTZ_API=https://api.testnet.boltz.exchange
#NETWORK=testnet
# CLN Backend
#LN_BACKEND_TYPE=CLN
# CLN's grpc-host:grpc-port
#CLN_ADDRESS=127.0.0.1:9737
# CLN's lightning directory containing the grpc certificates, usually ~/.lightning/<network>/
#CLN_LIGHTNING_DIR=/path/to/.lightning/bitcoin
# CLN's hold plugin https://github.com/BoltzExchange/hold gRPC address
#CLN_ADDRESS_HOLD=127.0.0.1:9738