Holy-Unblocker/bare
2022-02-25 22:56:50 -08:00
..
.gitignore Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
EncodeProtocol.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
Example.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
HeaderUtil.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
LICENSE Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
package.json Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
README.md Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
Response.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
Server.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
Standalone.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00
V1.mjs Massive update (TODO: Add UV locally) 2022-02-25 22:56:50 -08:00

TOMP Bare Server

This repository implements the TompHTTP bare server. See the specification here.

Usage

We provide a command-line interface for creating a server.

For more features, specify the --help option when running the CLI.

Quickstart

  1. Clone the repository locally
git clone https:/github.com/tomphttp/bare-server-node.git
  1. Enter the folder
cd bare-server-node
  1. Install dependencies
npm install
  1. Start the server
node ./Standalone.mjs --port 80 --host localhost

TLS

In the cloned repository (See quickstart)

  1. Generate OpenSSL certificates (Unless you're bringing your own)
mkdir tls
openssl genrsa -out tls/key.pem
openssl req -new -key tls/key.pem -out tls/csr.pem
openssl x509 -req -days 9999 -in tls/csr.pem -signkey tls/key.pem -out tls/cert.pem
  1. Start the server
node ./Standalone.mjs --port 443 --host localhost --tls --cert tls/cert.pem --key tls/key.pem