documentation: adds prettier formatting to markdown files (en)

This commit is contained in:
@wwwjim
2019-12-18 10:40:47 -08:00
parent ac535f3b63
commit 35cbcd5e9e
23 changed files with 326 additions and 148 deletions

View File

@ -1,6 +1,8 @@
# API Scripting Support
You may want to delegate the work **Lotus Storage Miner** or **Lotus Node** perform to other machines. Here is how to setup the necessary authorization and environment variables.
You may want to delegate the work **Lotus Storage Miner** or **Lotus Node**
perform to other machines. Here is how to setup the necessary authorization and
environment variables.
## Generate a JWT
@ -13,9 +15,12 @@ lotus-storage-miner auth create-token --perm admin
## Environment variables
Environmental variables are variables that are defined for the current shell and are inherited by any child shells or processes. Environmental variables are used to pass information into processes that are spawned from the shell.
Environmental variables are variables that are defined for the current shell and
are inherited by any child shells or processes. Environmental variables are used
to pass information into processes that are spawned from the shell.
Using the JWT you generated, you can assign it and the **multiaddr** to the appropriate environment variable.
Using the JWT you generated, you can assign it and the **multiaddr** to the
appropriate environment variable.
```sh
# Lotus Node
@ -25,7 +30,7 @@ FULLNODE_API_INFO="JWT_TOKEN:/ip4/127.0.0.1/tcp/1234/http"
STORAGE_API_INFO="JWT_TOKEN:/ip4/127.0.0.1/tcp/2345/http"
```
* The **Lotus Node**'s `mutliaddr` is in `~/.lotus/api`.
* The default token is in `~/.lotus/token`.
* The **Lotus Storage Miner**'s `multiaddr` is in `~/.lotusstorage/config`.
* The default token is in `~/.lotusstorage/token`.
- The **Lotus Node**'s `mutliaddr` is in `~/.lotus/api`.
- The default token is in `~/.lotus/token`.
- The **Lotus Storage Miner**'s `multiaddr` is in `~/.lotusstorage/config`.
- The default token is in `~/.lotusstorage/token`.