From b814beb6bd9165fe2cd12ffb700f77a7d25fb530 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 27 May 2018 04:26:34 -0600 Subject: [PATCH] progress towards telebit --- README.md | 55 ++--- bin/telebit.js | 205 +++++++++++-------- dist/etc/systemd/system/telebitd.service | 66 ++++++ examples/telebit.yml | 16 ++ examples/telebit.yml.tpl | 8 + installer/get.sh | 249 +++++++++++++++++++++++ remote.js | 6 +- 7 files changed, 486 insertions(+), 119 deletions(-) create mode 100644 dist/etc/systemd/system/telebitd.service create mode 100644 examples/telebit.yml create mode 100644 examples/telebit.yml.tpl create mode 100644 installer/get.sh diff --git a/README.md b/README.md index 71364c1..e5eed67 100644 --- a/README.md +++ b/README.md @@ -91,16 +91,10 @@ email: 'jon@example.com' # must be valid (for certificate recovery and agree_tos: true # agree to the Telebit, Greenlock, and Let's Encrypt TOSes community_member: true # receive infrequent relevant but non-critical updates telemetry: true # contribute to project telemetric data -secret: '' # JWT authorization secret. Generate like so: - # node -e "console.log(crypto.randomBytes(16).toString('hex'))" -remote_options: - https_redirect: false # don't redirect http to https remotely +secret: '' # Secret with which to sign Tokens for authorization +token: '' # A signed Token for authorization servernames: # servernames that will be forwarded here - example.com -local_ports: # ports to forward - 3000: 'http' - 8443: 'https' - 5050: true ```