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:
Why this is a good feature to have?
Example:
Site X is written with Xitrum. It also needs to integrate Discourse. With this reverse proxy feature, we can mount Discourse at
/forumof site X.For now, we don't support request and response interception.
In the future, we can:
respondProxyfor actions.How to implement?
Headers to set: