https://github.com/rejetto/reverse-proxy
HFS plugin to proxy configured paths to other servers
https://github.com/rejetto/reverse-proxy
hfs-plugin
Last synced: 4 months ago
JSON representation
HFS plugin to proxy configured paths to other servers
- Host: GitHub
- URL: https://github.com/rejetto/reverse-proxy
- Owner: rejetto
- License: gpl-3.0
- Created: 2024-09-11T21:08:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-28T11:48:36.000Z (8 months ago)
- Last Synced: 2025-10-28T13:29:09.053Z (8 months ago)
- Topics: hfs-plugin
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reverse-proxy
HFS plugin to proxy configured paths to other servers

HFS ~ HTTP File Server https://github.com/rejetto/hfs
## Messing with forwarded requests
On every forwarded request, this plugin is calling customApi `reverseproxy_forward`.
If your code/plugin exports this customApi, you can interact with it.
```js
exports.customApi = {
reverseproxy_forward({ forward, ctx }) {
// here you can see and modify the request we are about to forward
console.log(forward)
// forward is an object { url, method, headers, body }
// if you change its content, it will affect forwarded request.
}
}
```