Skip to content

Commit

Permalink
Update get_started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Apr 6, 2019
1 parent 0255444 commit 279aa32
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/zh_CN/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interval = 1
[manager]
api_base = "http://localhost:12345"
token = "some_token"
token = ""
ca_cert = ""
[cgroup]
Expand Down Expand Up @@ -98,6 +98,12 @@ $ tunasync worker --config ~/tunasync_demo/worker.conf
$ tunasynctl list -p 12345 --all
```

### 安全

worker 和 manager 之间用 http(s) 通信,如果你 worker 和 manager 都是在本机,那么没必要使用 https。此时 manager 就不指定 `ssl_key``ssl_cert`,留空;worker 的 `ca_cert` 留空,`api_base``http://` 开头。

如果需要加密的通信,manager 需要指定 `ssl_key``ssl_cert`,worker 要指定 `ca_cert`,并且 `api_base` 应该是 `https://` 开头。

## 更进一步

可以参看
Expand Down

0 comments on commit 279aa32

Please sign in to comment.