Use¶
cm-proxy¶
A quick, cheap, secure, and straightforward serverless localhost proxy
usage: cm-proxy [-h] [--bidirectional] [--mitmproxy MITMPROXY]
[--mitmweb]
[--stack-name-suffix STACK_NAME_SUFFIX]
[--update-stack] [--delete-stack] [-v]
[local_endpoint]
- local_endpoint¶
Fully qualified local HTTP endpoint (e.g., http://localhost:8000). If not specified, cm-proxy will create the AWS resources and exit.
- -h, --help¶
show this help message and exit
- --bidirectional¶
Create a bidirectional proxy. The local response will be returned to the external requester. A 503 response is returned after a timeout of about 30 seconds. If not specified, a unidirectional proxy is created, which always returns a 200 response immediately and ignores the local response.
- --mitmproxy <mitmproxy>¶
Start and use mitmproxy on specified localhost port
- --mitmweb¶
Start mitmproxy with the web GUI
- --stack-name-suffix <stack_name_suffix>¶
Suffix of CloudFormation stack name to create/reuse. If specified, the stack name will be cm-proxy-<suffix>. If not specified, the stack name will be cm-proxy-<uni|bidi>.
- --update-stack¶
Update the AWS resources on start
- --delete-stack¶
Delete the AWS resources on exit. By default, the resources are left intact and used on subsequent invocations.
- -v, --version¶
Output cm-proxy version and exit