From 1243ddfdf2f6e344f6a482646dd7ecdd22d1ffed Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Tue, 17 Dec 2019 17:21:20 -0800 Subject: [PATCH] link to api auth doc --- documentation/en/mining-worker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/en/mining-worker.md b/documentation/en/mining-worker.md index 9c3ef5e8d..a92e2ab5d 100644 --- a/documentation/en/mining-worker.md +++ b/documentation/en/mining-worker.md @@ -45,7 +45,7 @@ ListenAddress = "/ip4/127.0.0.1/tcp/2345/http" To make your node accessible over the local area network, you will need to determine your machines IP on the LAN, and change the `127.0.0.1` in the file to that address. A less secure, but more permissive option is to change it to `0.0.0.0`. This will allow anyone who can connect to your computer on that port to access the API (though they will still need an auth token, as we will discuss next). -Next, you will need to get an authentication token for the seal worker. All lotus APIs require authentication tokens to ensure your processes are as secure against attackers attempting to make unauthenticated requests to them. To create a token, run `lotus-storage-miner auth create-token --perm admin`. This will create a token with `admin` permissions. Note: This is an admin token, it can access any of the api endpoints of your node, take care not to leak it. +Next, you will need to get an authentication token for the seal worker. All lotus APIs require authentication tokens to ensure your processes are as secure against attackers attempting to make unauthenticated requests to them. To create a token, run `lotus-storage-miner auth create-token --perm admin`. This will create a token with `admin` permissions. Note: This is an admin token, it can access any of the api endpoints of your node, take care not to leak it. See the [scripting support doc](api-scripting-support.md) for more details. This token will look something like this: ```sh