mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-06-02 10:39:10 +08:00
documentation: adds prettier formatting to markdown files (en)
This commit is contained in:
@ -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`.
|
||||
|
Reference in New Issue
Block a user