Skip to content

Xitrum can act as a reverse proxy #588

Description

@ngocdaothanh

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions