2.11.2 • Published 4 days ago

tlsd v2.11.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 days ago

tlsd

This is a node.js based webserver. It is designed for development work on prototype web applications. It is not designed for production websites.

Features

- SSL/TLS via Greenlock
- Websockets built in
- Standardised Websockets/RPC protocol for front/back end communcations
- Utility command 'tlsd'

Installing

Install tlsd into your project:

npm install tlsd

The tlsd module should now be added to your local package.json file and you can run it this way:

npx tlsd

This way you can just use it to serve your local project in dev or TLS mode.

tlsd init

Creates empty scaffolding files for a project:

mkdir my_project
tlsd init my_project

This can then be tested by starting the server:

tlsd run dev my_project 12345 3

And then browsing to "http://localhost:12345". You should see the pages being delivered and a websocket connection being established.

tlsd run dev

In dev mode, tlsd runs a plain HTTP server without TLS/SSL security. This is for local (your computer) development:

tlsd root_dir port_num log_level

All arguments are required.

tlsd domain

Adds a domain to Greenlock so that you can serve site with HTTPS:

tlsd domain example.com

tlsd version

Displays the current version of tlsd

TLS Mode

In HTTPS mode, you must specify the dir containing links/dirs for domains to serve it will run on HTTP on 80 (redirecting to 443), HTTPS on 443, and magically generate certs and serve secure sites like nodes:

DOMAINS_ROOT=./my_domains MAINTAINER_EMAIL=foo@bar.com VERBOSITY=4  node tlsd.js

All env vars and arguments are required.

You must also add your domain to greenlock before running nodes or it won't be recognzied:

npx greenlock add --subject example.com --altnames example.com,www.example.com

TLS mode serves files with Letsencrypt SSL certs magically.

2.11.0

5 days ago

2.10.1

3 months ago

2.11.1

4 days ago

2.11.2

4 days ago

2.10.0

4 months ago

2.9.0

5 months ago

2.8.0

5 months ago

2.9.1

5 months ago

2.6.5

6 months ago

2.6.7

6 months ago

2.6.6

6 months ago

2.7.0

6 months ago

2.7.1

6 months ago

2.3.0

8 months ago

2.2.1

9 months ago

2.1.2

9 months ago

2.2.0

9 months ago

2.5.0

8 months ago

2.4.1

8 months ago

2.4.0

8 months ago

2.2.2

9 months ago

2.1.3

9 months ago

2.6.1

8 months ago

2.6.0

8 months ago

2.6.3

7 months ago

2.6.2

8 months ago

2.1.0

9 months ago

2.0.0

9 months ago

1.0.0

2 years ago