# node-domain-front

> A domain controller over http trafic

Latest version **0.2.1** (published 2017-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-domain-front
pnpm add node-domain-front
yarn add node-domain-front
bun add node-domain-front
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-11-30 |
| First published | 2017-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julien Ferluc |
| Maintainers | entrybot |
| Keywords | http, load-balancer, server, domain, master, control, controller, sub-domain |

## Links

- npm: https://www.npmjs.com/package/node-domain-front
- Repository: https://github.com/EntrybotJS/Node-Domain-Front
- Homepage: https://github.com/EntrybotJS/Node-Domain-Front#readme
- Issues: https://github.com/EntrybotJS/Node-Domain-Front/issues
- npm.io page: https://npm.io/package/node-domain-front

## Dependencies (7)

- [async](https://npm.io/package/async.md) ^2.6.0
- [morgan](https://npm.io/package/morgan.md) ^1.9.0
- [express](https://npm.io/package/express.md) ^4.16.2
- [request](https://npm.io/package/request.md) ^2.83.0
- [commander](https://npm.io/package/commander.md) ^2.12.1
- [http-proxy](https://npm.io/package/http-proxy.md) ^1.16.2
- [type-check](https://npm.io/package/type-check.md) ^0.3.2

## Recent versions

- 0.2.1 (latest) — 2017-11-30
- 0.1.1-0 — 2017-11-28
- 0.1.0 — 2017-11-28

## README

# Node-Domain-Front
A node program  to control the behavior of multiple domains and subdomains

## Config Example (not implemented yet)
```json
{
	"dashboard": {
		"enable": true,
		"port": 8080,
		"allowAdress": ["::1", "127.0.0.1"]
	},
	"nodes": [
		{
			"name": "web1",
			"role": "http",
			"host": "http://julienferluc.com",
			"port": 80,
			"domain": "127.0.0.1"
		},
		{
			"name": "web2",
			"role": "http",
			"host": "http://google.ca",
			"port": 80,
			"domain": "localhost"
		}
	],
	"out": [
		{
			"domain": "127.0.0.1",
			"port": 3000
		},
		{
			"domain": "localhost",
			"port": 3000
		}
	]
}
```

## Availability
The server will automatically ping every endpoint marked in the config file. Endpoints that do not respond will cause the server to show a 404 page on their behalf. Such a file can be modified in the config file. Also, **uptime monitoring could be implemented later**.

---
_Source: https://npm.io/package/node-domain-front · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
