Using as Reverse Proxy
Optic capture can also be run in reverse proxy mode in cases that you cannot set up a system proxy
optic capture openapi.yaml http://localhost:3030 --reverse-proxy
> Optic proxy is running at https://localhost:8000. Route traffic through it and traffic to http://localhost:3030 will be captured
Once the proxy is running, send traffic to the port Optic is running on (in this case, it's https://localhost:8000
), and traffic will be forwarded to the target url (in this example, it's http://localhost:3030
)