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

be able to specify more specific routing for the upstream server #18

Open
cdepillabout opened this issue Jul 4, 2018 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@cdepillabout
Copy link
Member

Currently, goat-guardian works like the following:

If a request comes in on the path /twitter/login or /twitter/callback, goat-guardian handles it directly. If a request comes in on any other path (like /some/other/page.html), goat-guardian forwards the request to the upstream server.

It would be nice to be able to specify "routing rules" for goat-guardian.

For instance, if a request comes in on a path like /static/img/*, then forward it to static-img-server.example.com. If a request comes in on any other path, then forward it to app-server.example.com.

In order to be able to specify something like this, we probably need to write these routing rules in a configuration file. That means that #17 needs to be implemented before we can do this issue.

We are imagining that these routing rules would be able to be specified like they are in Webpack:

https://webpack.js.org/configuration/dev-server/#devserver-proxy

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

No branches or pull requests

1 participant