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`
`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.