1
0
mirror of https://github.com/bumi/faraday_ln_paywall synced 2025-06-16 00:58:13 +00:00

Update README.md

This commit is contained in:
bumi 2018-11-22 11:17:41 +00:00 committed by GitHub
parent d46c36c989
commit a41f4cfb6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,7 @@ The middleware accepts the following configuration options:
* `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:
`xxd -p -c2000 admin.macaroon` or:
```ruby
::File.read(::File.expand_path("/path/to/admin.macaroon")).each_byte.map { |b| b.to_s(16).rjust(2,'0') }.join
```