https://github.com/piranna/nodeos-reverse-proxy-register
https://github.com/piranna/nodeos-reverse-proxy-register
nodeos
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/piranna/nodeos-reverse-proxy-register
- Owner: piranna
- License: isc
- Created: 2016-07-11T18:40:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:38:01.000Z (about 2 years ago)
- Last Synced: 2025-08-09T12:32:00.839Z (6 months ago)
- Topics: nodeos
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/piranna/nodeos-reverse-proxy-register)
[](https://coveralls.io/github/piranna/nodeos-reverse-proxy-register?branch=master)
# nodeos-reverse-proxy-register
Register a priviledged port or a domain address on the
[NodeOS reverse proxy](https://github.com/piranna/nodeos-reverse-proxy)
## How to use it
`nodeos-reverse-proxy-register` transparently piggy-back on top of the Node.js build-in `dgram` and `net` modules to send a request to `nodeos-reverse-proxy` to register ports when calling the `.bind()` and `.listen()` methods, and unregister automatically when they get clossed. For domains, since there's no standard way to register them on Node.js it's needed to do it by hand by calling to the exported `register()` and `unregister()` functions.
## How it works
Communications with `nodeos-reverse-proxy` are done using `POST` requests to the urls `http://127.0.0.1/_register` and `http://127.0.0.1/_unregister`, that later are filtered by it to only allow requests from the own machine.