Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Sep 7, 2020
1 parent a9a03d0 commit 53b018f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ chmod +x admin.sh
./admin.sh start
```

### Set up Allow List
Domian Allow List allows you to limit the use of signaling service to your website and your streams, thus preventing unwanted use of your service on a third-party site. Set up your domain names in the config.yaml:
```yaml
allow_list:
- "localhost"
- "YOUE_DOMAIN1"
- "YOUE_DOMAIN2"
```
If the accessing domain name doesn't match your whitelisted domain names, clients will not be able to connect to the server and will not receive or generate any peer traffic.
### test
```
import Hls from 'cdnbye';
Expand Down Expand Up @@ -46,6 +56,15 @@ echo -17 > /proc/$(pidof cbsignal)/oom_adj # 防止进程被OOM killer杀死
./admin.sh start
```

### 设置域名白名单
域名白名单可以防止未经授权的网站使用你的信令服务,可以在 config.yaml 文件中进行设置:
```yaml
allow_list:
- "localhost"
- "YOUE_DOMAIN1"
- "YOUE_DOMAIN2"
```
### 测试
```
import Hls from 'cdnbye';
Expand Down

0 comments on commit 53b018f

Please sign in to comment.