docs: proxy

This commit is contained in:
DIYgod
2019-04-18 14:36:38 +08:00
parent df026d7198
commit 35fccee90c
2 changed files with 13 additions and 5 deletions

View File

@@ -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` `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_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 ### User Authentication
Routes in `protected_route.js` will be protected using HTTP Basic Authentication. Routes in `protected_route.js` will be protected using HTTP Basic Authentication.

View File

@@ -289,11 +289,15 @@ gcloud app deploy
`LOGGER_LEVEL`: 指明输出到 console 和日志文件的日志的最大[等级](https://github.com/winstonjs/winston#logging-levels),默认 `info` `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 正则表达式,默认全部开启 `.*`
### 用户认证 ### 用户认证