@@ -8,7 +8,7 @@ By default LiT assumes that `lnd` is running as a standalone process locally. Ho
88To connect Lightning Terminal to a remote LND instance first make sure your ` lnd.conf `
99file contains the following additional configuration settings:
1010
11- ```
11+ ``` text
1212tlsextraip=<externally-reachable-ip-address>
1313rpclisten=0.0.0.0:10009
1414```
@@ -36,16 +36,16 @@ depends on your operating system:
3636Alternatively you can specify a different location by passing ` --lit-dir=~/.lit ` . After
3737creating ` lit.conf ` populate it with the following configuration settings:
3838
39- ```
39+ ``` text
4040remote.lnd.rpcserver=<externally-reachable-ip-address>:10009
4141remote.lnd.macaroondir=/some/folder/with/lnd/data
4242remote.lnd.tlscertpath=/some/folder/with/lnd/data/tls.cert
4343```
4444
4545Run LiT:
4646
47- ```
48- ./litd --uipassword=UP48lm4VjqxmOxB9X9stry6VTKBRQI
47+ ``` shell
48+ ⛰ ./litd --uipassword=UP48lm4VjqxmOxB9X9stry6VTKBRQI
4949```
5050
5151Visit https://localhost:8443 to access LiT.
@@ -75,8 +75,8 @@ To see all available command line options, run `litd --help`.
7575The most minimal example command to start ` litd ` and connect it to a local ` lnd `
7676node that is running with default configuration settings is:
7777
78- ``` shell script
79- $ litd --uipassword=My$trongP @ssword
78+ ``` shell
79+ ⛰ litd --uipassword=My$trongP @ssword
8080```
8181
8282All other command line flags are only needed to overwrite the default behavior.
@@ -85,9 +85,9 @@ Here is an example command to start `litd` connected to a testnet `lnd` that is
8585running on another host and overwrites a few default settings in ` loop ` , ` pool ` ,
8686and ` faraday ` (optional):
8787
88- ``` shell script
89- $ litd \
90- --httpslisten=0.0.0.0:443 \
88+ ``` shell
89+ ⛰ litd \
90+ --httpslisten=0.0.0.0:8443 \
9191 --uipassword=My$trongP @ssword \
9292 --letsencrypt \
9393 --letsencrypthost=loop.merchant.com \
@@ -139,7 +139,7 @@ running on another host and overwrites a few default settings in `loop`, `pool`,
139139
140140``` text
141141# Application Options
142- httpslisten=0.0.0.0:443
142+ httpslisten=0.0.0.0:8443
143143uipassword=My$trongP@ssword
144144letsencrypt=true
145145letsencrypthost=loop.merchant.com
@@ -187,7 +187,7 @@ reasons for the extra flags. The examples assume that LiT is started with the fo
187187configuration (only relevant parts shown here):
188188
189189``` text
190- httpslisten=0.0.0.0:443
190+ httpslisten=0.0.0.0:8443
191191lit-dir=~/.lit
192192
193193remote.lnd.network=testnet
@@ -197,7 +197,7 @@ remote.lnd.tlscertpath=/some/folder/with/lnd/data/tls.cert
197197```
198198
199199Because in the remote ` lnd ` mode all other LiT components (` loop ` , ` pool ` ,
200- ` faraday ` and the UI server) listen on the same port (` 443 ` in this example) and
200+ ` faraday ` and the UI server) listen on the same port (` 8443 ` in this example) and
201201use the same TLS certificate (` ~/.lit/tls.cert ` in this example), some command
202202line calls now need some extra options that weren't necessary before.
203203
@@ -213,8 +213,8 @@ implied by looking inside the default directories for that network. Or you speci
213213The ` lncli ` commands in the "remote" mode are the same as if ` lnd ` was running standalone
214214on a remote host. We need to specify all flags explicitly.
215215
216- ``` shell script
217- $ lncli --rpcserver=some-other-host:10009 \
216+ ``` shell
217+ ⛰ lncli --rpcserver=some-other-host:10009 \
218218 --tlscertpath=/some/folder/with/lnd/data/tls.cert \
219219 --macaroonpath=/some/folder/with/lnd/data/admin.macaroon \
220220 getinfo
@@ -227,17 +227,17 @@ the same port as the UI server. That's why we have to both specify the `host:por
227227as the TLS certificate of LiT. But ` loopd ` verifies its own macaroon, so we have to
228228specify that one from the ` .loop ` directory.
229229
230- ``` shell script
231- $ loop --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
230+ ``` shell
231+ ⛰ loop --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
232232 --macaroonpath=~ /.loop/testnet/loop.macaroon \
233233 quote out 500000
234234```
235235
236236You can easily create an alias for this by adding the following line to your ` ~/.bashrc `
237237file:
238238
239- ``` shell script
240- alias lit-loop=" loop --rpcserver=localhost:443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.loop/testnet/loop.macaroon"
239+ ``` shell
240+ ⛰ alias lit-loop=" loop --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.loop/testnet/loop.macaroon"
241241```
242242
243243### Example ` pool ` command
@@ -246,33 +246,45 @@ Again, `poold` also runs on the same port as the UI server and we have to
246246specify the ` host:port ` and the TLS certificate of LiT but use the macaroon from
247247the ` .pool ` directory.
248248
249- ``` shell script
250- $ pool --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
249+ ``` shell
250+ ⛰ pool --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
251251 --macaroonpath=~ /.pool/testnet/pool.macaroon \
252252 accounts list
253253```
254254
255255You can easily create an alias for this by adding the following line to your
256256` ~/.bashrc ` file:
257257
258- ``` shell script
259- alias lit-pool=" pool --rpcserver=localhost:443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.pool/testnet/pool.macaroon"
258+ ``` shell
259+ ⛰ alias lit-pool=" pool --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.pool/testnet/pool.macaroon"
260260```
261261
262262### Example ` frcli ` command
263263
264264Faraday's command line tool follows the same pattern as loop. We also have to specify the
265265server and TLS flags for ` lnd ` but use ` faraday ` 's macaroon:
266266
267- ``` shell script
268- $ frcli --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
267+ ``` shell
268+ ⛰ frcli --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
269269 --macaroonpath=~ /.faraday/testnet/faraday.macaroon \
270270 audit
271271```
272272
273273You can easily create an alias for this by adding the following line to your ` ~/.bashrc `
274274file:
275275
276- ``` shell script
277- alias lit-frcli=" frcli --rpcserver=localhost:443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.faraday/testnet/faraday.macaroon"
276+ ``` shell
277+ ⛰ alias lit-frcli=" frcli --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.faraday/testnet/faraday.macaroon"
278+ ```
279+
280+ ## Shutting down LiT
281+
282+ In the remote mode, there is no explicit command for stopping LiT yet. But a
283+ clean shutdown can be achieved by either pressing ` <Ctrl> + c ` in the terminal
284+ where LiT is running. Or, if LiT is running in the background, the following
285+ command can be used to send an interrupt signal which will trigger the clean
286+ shutdown:
287+
288+ ``` shell
289+ ⛰ kill -s INT $( pidof litd)
278290```
0 commit comments