A simple reverse HTTP proxy, designed for easy, but flexible, configuration.
- Proxy incoming connections to any number of back-end servers
- Rewrite requests before proxying
- Hooks for pre- and post- request
npm i -g @fordi-org/reverse-proxy
reverse-proxy {configuration.js}npm i @fordi-org/reverse-proxyimport { createProxy } from '@fordi-org/reverse-proxy';
await createProxy({ /* ... configuration ... */ });The configuration object has a schema as defined in ./config.d.ts. If using a configuration file, the object must be that file's default export.