From ceacc5cd8540d54af523b491f32b025d18408a82 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Wed, 21 Nov 2018 20:14:56 +0000 Subject: [PATCH] Document passing credentials and macaroon directly --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 82fd6b6..d7ccdf0 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,12 @@ The middleware accepts the following configuration options: * `address`: the address of the lnd gRPC service( default: `localhost:10009`) * `credentials_path`: path to the tls.cert (default: `~/.lnd/tls.cert`) * `macaroon_path`: path to the macaroon path (default: `~/.lnd/data/chain/bitcoin/testnet/admin.macaroon`) - +* `credentials`: instead of configuring a `credentials_path` you can pass the content of the tls.cert directly +* `macaroon`: instead of configuring a `macaroon_path` you can pass the hex content of the macaroon directly + you can get the macaroon content like this: + ```ruby + ::File.read(::File.expand_path("/path/to/admin.macaroon")).each_byte.map { |b| b.to_s(16).rjust(2,'0') }.join + ``` ## What is the Lightning Network?