To run hermes proxy use ./proxy [opts]
or use node ./bin/hermes-proxy [opts]
Try ./proxy --help
to get started
MAC setup
- install node with
brew install node
. - upgrade node with
npm install -g n; n stable
- upgrade npm with
npm install -g npm
; - Run
npm install
in this directory - test the proxy with
./proxy --help
Option | Description | Default |
---|---|---|
-p , --http-port |
http port for the proxy server | - |
-s , --https-port |
https port for the proxy server | - |
--log-level |
the current log level for the server | DEBUG |
Option | Description | Default |
---|---|---|
-P , --protocol |
the protocol for the proxy manager | http |
-p , --port |
port for the proxy manager | - |
-d , --domain |
domain for the proxy manager | localhost |
--no-retry |
do not retry if the connection to the proxy manager fails | false |
--log-level |
the current log level for the server | DEBUG |
The proxy server once connected accepts the following commands
Command | Description |
---|---|
startup | start the proxy server with a config object see below |
enable | the proxy will cache traffic and make requests when not cached |
flush | reset the proxy cache |
disable | the proxy will only return cached traffic |
exit | kill the proxy service |
{
"httpPort": "",
"httpsPort": ""
}