microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
481 stars 56 forks source link

Add support for reverse proxy mode #778

Closed gdubicki closed 3 months ago

gdubicki commented 3 months ago

Hi,

This project looks very interesting.

However, my use case is to run it in testing/staging environments, in a k8s cluster to simulate timeouts and other issues with particular services, not to run it locally during development.

Have you considered implementing a reverse proxy mode, where you would provide a target host and port to forward the requests to during startup?

waldekmastykarz commented 3 months ago

Hey @gdubicki, thanks for reaching out! Dev Proxy is meant to be used on clients to intercept outgoing API requests and provide you with contextual guidance. We haven't considered implementing routing. The good news is, that Dev Proxy supports plugins so you could build your own. Have you considered using Yarp for the reverse proxy piece?

waldekmastykarz commented 3 months ago

Closing due to lack of further comments