mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 07:12:51 +08:00
docs: proxy
This commit is contained in:
@@ -283,12 +283,16 @@ Use environment variables is recommended to avoid conflicts during upgrade.
|
||||
|
||||
`LOGGER_LEVEL`: specifies the maximum [level](https://github.com/winstonjs/winston#logging-levels) of messages to the console and log file, default to `info`
|
||||
|
||||
`PROXY_PROTOCOL`: Using proxy of such protocol, Supports socks, socks4,socks4a,socks5,socks5h
|
||||
`PROXY_PROTOCOL`: Using proxy, Supports socks, http, https
|
||||
|
||||
`PROXY_HOST`: host of the proxy
|
||||
`PROXY_HOST`: host or IP of the proxy
|
||||
|
||||
`PROXY_PORT`: port of the proxy
|
||||
|
||||
`PROXY_AUTH`: credentials to authenticate a user agent to proxy server, `Proxy-Authorization: Basic ${process.env.PROXY_AUTH}`
|
||||
|
||||
`PROXY_URL_REGEX`: regex for url of enabling proxy, default to `.*`
|
||||
|
||||
### User Authentication
|
||||
|
||||
Routes in `protected_route.js` will be protected using HTTP Basic Authentication.
|
||||
|
||||
@@ -289,11 +289,15 @@ gcloud app deploy
|
||||
|
||||
`LOGGER_LEVEL`: 指明输出到 console 和日志文件的日志的最大[等级](https://github.com/winstonjs/winston#logging-levels),默认 `info`
|
||||
|
||||
`PROXY_PROTOCOL`: 使用 proxy 来访问的协议, 目前只支持 socks, socks4,socks4a,socks5,socks5h
|
||||
`PROXY_PROTOCOL`: 使用代理, 支持 socks, http, https
|
||||
|
||||
`PROXY_HOST`: proxy 的域名
|
||||
`PROXY_HOST`: 代理服务器域名或 IP
|
||||
|
||||
`PROXY_PORT`: proxy 的端口
|
||||
`PROXY_PORT`: 代理服务器端口
|
||||
|
||||
`PROXY_AUTH`: 给代理服务器的身份验证凭证,`Proxy-Authorization: Basic ${process.env.PROXY_AUTH}`
|
||||
|
||||
`PROXY_URL_REGEX`: 启用代理的 URL 正则表达式,默认全部开启 `.*`
|
||||
|
||||
### 用户认证
|
||||
|
||||
|
||||
Reference in New Issue
Block a user