docs: add PUPPETEER_WS_ENDPOINT

This commit is contained in:
DIYgod 2019-08-23 17:43:28 +08:00
parent 88f2b43e44
commit 34233f5fd4
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 4 additions and 4 deletions

View File

@ -300,6 +300,8 @@ Use environment variables is recommended to avoid conflicts during upgrade.
`NODE_NAME`: node name, used for load balancing, identify current node
`PUPPETEER_WS_ENDPOINT`: 用于 puppeteer.connect 的浏览器 websocket 链接,见 [browserWSEndpoint](https://zhaoqize.github.io/puppeteer-api-zh_CN/#?product=Puppeteer&version=v1.14.0&show=api-browserwsendpoint)
### User Authentication
Routes in `protected_route.js` will be protected using HTTP Basic Authentication.

View File

@ -289,10 +289,6 @@ $ cd RSSHub
$ docker build -f ./Dockerfile.arm32v7 -t rsshub:arm32v7 .
```
puppeteer 本身不会下载 chrome-arm需要在 `lib/config.js` 中的 `puppeteerWSEndpoint`中设置相应的远程 Chrome Websocket 地址,以启用相应路由
TO DO: 暂时还没有找到合适的 `chrome websocket` arm32v7 镜像
运行 RSSHub
```bash
@ -372,6 +368,8 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式
`NODE_NAME`: 节点名,用于负载均衡,识别当前节点
`PUPPETEER_WS_ENDPOINT`: Browser websocket endpoint which can be used as an argument to puppeteer.connect, refer to [browserWSEndpoint](https://pptr.dev/#?product=Puppeteer&version=v1.14.0&show=api-browserwsendpoint)
### 部分 RSS 模块配置
- pixiv 全部路由: [注册地址](https://accounts.pixiv.net/signup)