From c8035528bbb5889bbc213b36ef938acdce52f6dd Mon Sep 17 00:00:00 2001 From: Edouard Paris Date: Thu, 11 Apr 2019 14:06:21 +0200 Subject: [PATCH] ft readme add config --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 49085e2..79df6ea 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,25 @@ Require the [go programming language](https://golang.org/) (version >= 1.11) git clone git@github.com:edouardparis/lntop.git cd lntop && export GO111MODULE=on && go install ./... ``` + +## Config + +First time `lntop` is used a config file `.lntop/config.toml` is created +in the user home directory. +```toml +[logger] +type = "production" +dest = "/root/.lntop/lntop.log" + +[network] +name = "lnd" +type = "lnd" +address = "//127.0.0.1:10009" +cert = "/root/.lnd/tls.cert" +macaroon = "/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon" +macaroon_timeout = 60 +max_msg_recv_size = 52428800 +conn_timeout = 1000000 +pool_capacity = 3 +``` +Change macaroon path according to your network.