Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reverse proxying a route in the dev server. #32

Open
tracker1 opened this issue Aug 10, 2021 · 3 comments
Open

Support reverse proxying a route in the dev server. #32

tracker1 opened this issue Aug 10, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@tracker1
Copy link

A nice to have feature would be to be able to reverse proxy a fixed route in the dev server.

ie: /api points to http://localhost:8888/api or just a bare server... if the prefix route/slice exists on both sides, it should be declared on both sides, if a trailing slash is used on either side, it should be used on both sides.

When I tend to deploy applications, they're usually sliced off via na ingress server with things like /auth or /api pointing to another resource on the ingress host... this is difficult to replicate if the dev server doesn't also allow a reverse proxy.

Nice to have would be https support for the proxied server, since one may want to target a live API when developing an application.

@buttercubz buttercubz added the enhancement New feature or request label Aug 12, 2021
@michael-spengler
Copy link
Collaborator

@tracker1: How valuable would this enhancement be for you? I'm asking as I encourage my students to work on issues which are funded via https://gitcoin.co ...

@michael-spengler
Copy link
Collaborator

I deploy many applications via solutions like: https://spheron.network/ ... might be helpful for some developers reading this.

@tracker1
Copy link
Author

tracker1 commented Mar 9, 2022

@michael-spengler sorry for the very delated response... TBH, I was just toying around with this, not using it for a production project... I would say the feature to be able to reverse proxy from a few routes is very important for UI development. Most of the apps I've worked on for the last several years has used route slices in order to access applicable api backends without worrying about CORS controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants