@@ -8,7 +8,7 @@ By default LiT assumes that `lnd` is running as a standalone process locally. Ho
8
8
To connect Lightning Terminal to a remote LND instance first make sure your ` lnd.conf `
9
9
file contains the following additional configuration settings:
10
10
11
- ```
11
+ ``` text
12
12
tlsextraip=<externally-reachable-ip-address>
13
13
rpclisten=0.0.0.0:10009
14
14
```
@@ -36,16 +36,16 @@ depends on your operating system:
36
36
Alternatively you can specify a different location by passing ` --lit-dir=~/.lit ` . After
37
37
creating ` lit.conf ` populate it with the following configuration settings:
38
38
39
- ```
39
+ ``` text
40
40
remote.lnd.rpcserver=<externally-reachable-ip-address>:10009
41
41
remote.lnd.macaroondir=/some/folder/with/lnd/data
42
42
remote.lnd.tlscertpath=/some/folder/with/lnd/data/tls.cert
43
43
```
44
44
45
45
Run LiT:
46
46
47
- ```
48
- ./litd --uipassword=UP48lm4VjqxmOxB9X9stry6VTKBRQI
47
+ ``` shell
48
+ ⛰ ./litd --uipassword=UP48lm4VjqxmOxB9X9stry6VTKBRQI
49
49
```
50
50
51
51
Visit https://localhost:8443 to access LiT.
@@ -75,8 +75,8 @@ To see all available command line options, run `litd --help`.
75
75
The most minimal example command to start ` litd ` and connect it to a local ` lnd `
76
76
node that is running with default configuration settings is:
77
77
78
- ``` shell script
79
- $ litd --uipassword=My$trongP @ssword
78
+ ``` shell
79
+ ⛰ litd --uipassword=My$trongP @ssword
80
80
```
81
81
82
82
All 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
85
85
running on another host and overwrites a few default settings in ` loop ` , ` pool ` ,
86
86
and ` faraday ` (optional):
87
87
88
- ``` shell script
89
- $ litd \
90
- --httpslisten=0.0.0.0:443 \
88
+ ``` shell
89
+ ⛰ litd \
90
+ --httpslisten=0.0.0.0:8443 \
91
91
--uipassword=My$trongP @ssword \
92
92
--letsencrypt \
93
93
--letsencrypthost=loop.merchant.com \
@@ -139,7 +139,7 @@ running on another host and overwrites a few default settings in `loop`, `pool`,
139
139
140
140
``` text
141
141
# Application Options
142
- httpslisten=0.0.0.0:443
142
+ httpslisten=0.0.0.0:8443
143
143
uipassword=My$trongP@ssword
144
144
letsencrypt=true
145
145
letsencrypthost=loop.merchant.com
@@ -187,7 +187,7 @@ reasons for the extra flags. The examples assume that LiT is started with the fo
187
187
configuration (only relevant parts shown here):
188
188
189
189
``` text
190
- httpslisten=0.0.0.0:443
190
+ httpslisten=0.0.0.0:8443
191
191
lit-dir=~/.lit
192
192
193
193
remote.lnd.network=testnet
@@ -197,7 +197,7 @@ remote.lnd.tlscertpath=/some/folder/with/lnd/data/tls.cert
197
197
```
198
198
199
199
Because 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
201
201
use the same TLS certificate (` ~/.lit/tls.cert ` in this example), some command
202
202
line calls now need some extra options that weren't necessary before.
203
203
@@ -213,8 +213,8 @@ implied by looking inside the default directories for that network. Or you speci
213
213
The ` lncli ` commands in the "remote" mode are the same as if ` lnd ` was running standalone
214
214
on a remote host. We need to specify all flags explicitly.
215
215
216
- ``` shell script
217
- $ lncli --rpcserver=some-other-host:10009 \
216
+ ``` shell
217
+ ⛰ lncli --rpcserver=some-other-host:10009 \
218
218
--tlscertpath=/some/folder/with/lnd/data/tls.cert \
219
219
--macaroonpath=/some/folder/with/lnd/data/admin.macaroon \
220
220
getinfo
@@ -227,17 +227,17 @@ the same port as the UI server. That's why we have to both specify the `host:por
227
227
as the TLS certificate of LiT. But ` loopd ` verifies its own macaroon, so we have to
228
228
specify that one from the ` .loop ` directory.
229
229
230
- ``` shell script
231
- $ loop --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
230
+ ``` shell
231
+ ⛰ loop --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
232
232
--macaroonpath=~ /.loop/testnet/loop.macaroon \
233
233
quote out 500000
234
234
```
235
235
236
236
You can easily create an alias for this by adding the following line to your ` ~/.bashrc `
237
237
file:
238
238
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"
241
241
```
242
242
243
243
### Example ` pool ` command
@@ -246,33 +246,45 @@ Again, `poold` also runs on the same port as the UI server and we have to
246
246
specify the ` host:port ` and the TLS certificate of LiT but use the macaroon from
247
247
the ` .pool ` directory.
248
248
249
- ``` shell script
250
- $ pool --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
249
+ ``` shell
250
+ ⛰ pool --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
251
251
--macaroonpath=~ /.pool/testnet/pool.macaroon \
252
252
accounts list
253
253
```
254
254
255
255
You can easily create an alias for this by adding the following line to your
256
256
` ~/.bashrc ` file:
257
257
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"
260
260
```
261
261
262
262
### Example ` frcli ` command
263
263
264
264
Faraday's command line tool follows the same pattern as loop. We also have to specify the
265
265
server and TLS flags for ` lnd ` but use ` faraday ` 's macaroon:
266
266
267
- ``` shell script
268
- $ frcli --rpcserver=localhost:443 --tlscertpath=~ /.lit/tls.cert \
267
+ ``` shell
268
+ ⛰ frcli --rpcserver=localhost:8443 --tlscertpath=~ /.lit/tls.cert \
269
269
--macaroonpath=~ /.faraday/testnet/faraday.macaroon \
270
270
audit
271
271
```
272
272
273
273
You can easily create an alias for this by adding the following line to your ` ~/.bashrc `
274
274
file:
275
275
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)
278
290
```
0 commit comments