mirror of https://github.com/bumi/rack-lightning
Update README.md
This commit is contained in:
parent
7f1c0e3c27
commit
4d43db0bef
|
@ -61,8 +61,8 @@ The tls.cert and the macaroon config can be loaded from a variable:
|
||||||
```ruby
|
```ruby
|
||||||
ENV['LND_CREDENTIALS'] = "the content of your tls.cert file"
|
ENV['LND_CREDENTIALS'] = "the content of your tls.cert file"
|
||||||
ENV['LND_MACAROON'] = "the hex encoded content of your macaroon file"
|
ENV['LND_MACAROON'] = "the hex encoded content of your macaroon file"
|
||||||
# you can get the macaroon content like this: `xxd -p -c2000 admin.macaroon`
|
# you can get the macaroon content like this: xxd -p -c2000 admin.macaroon
|
||||||
# or `::File.read(::File.expand_path("/path/to/admin.macaroon")).each_byte.map { |b| b.to_s(16).rjust(2,'0') }.join`
|
# or ::File.read(::File.expand_path("/path/to/admin.macaroon")).each_byte.map { |b| b.to_s(16).rjust(2,'0') }.join
|
||||||
|
|
||||||
Example = Rack::Builder.new {
|
Example = Rack::Builder.new {
|
||||||
use Rack::Lightning, { macaroon: ENV['LND_MACAROON'], credentials: ENV['LND_CREDENTIALS'] }
|
use Rack::Lightning, { macaroon: ENV['LND_MACAROON'], credentials: ENV['LND_CREDENTIALS'] }
|
||||||
|
|
Loading…
Reference in New Issue