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

Xitrum can act as a reverse proxy #588

Open
ngocdaothanh opened this issue Feb 27, 2016 · 0 comments
Open

Xitrum can act as a reverse proxy #588

ngocdaothanh opened this issue Feb 27, 2016 · 0 comments
Assignees

Comments

@ngocdaothanh
Copy link
Member

Why this is a good feature to have?

  • This is for convenience, so that we don't have to install additional reverse proxies like Nginx, HAProxy etc.
  • We usually use those for (1) reverse proxy and (2) static file serving. Xitrum is already good at (2), adding (1) will make Xitrum more complete.

Example:
Site X is written with Xitrum. It also needs to integrate Discourse. With this reverse proxy feature, we can mount Discourse at /forum of site X.

For now, we don't support request and response interception.

In the future, we can:

  • Allow code to intercept requests and responses to modify (headers etc.) or extract info.
  • Add respondProxy for actions.

How to implement?

Headers to set:

@ngocdaothanh ngocdaothanh self-assigned this Feb 27, 2016
@ngocdaothanh ngocdaothanh added this to the Xitrum 3.26.1 milestone Feb 27, 2016
@ngocdaothanh ngocdaothanh removed this from the Xitrum 3.28.0 milestone Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant