diff --git a/lib/extensions.js b/lib/extensions.js index f4e0c11..371b1a9 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -26,7 +26,8 @@ module.exports.authenticate = function (opts) { auth = jwtoken; if ('object' === typeof auth && /^.+@.+\..+$/.test(auth.subject)) { console.log('parsed'); - var id = crypto.randomBytes(16).toString('base64').replace(/\+/,'-').replace(/\//g,'_').replace(/=/g,''); + var id = crypto.randomBytes(12).toString('hex'); + //var id = crypto.randomBytes(16).toString('base64').replace(/\+/g,'-').replace(/\//g,'_').replace(/=/g,''); console.log("[DEBUG] gonna send email"); return requestAsync({ url: 'https://api.mailgun.net/v3/telebit.cloud/messages' @@ -130,7 +131,7 @@ app.use('/login', function (req, res) { + 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',') + '" />' + '' - + '

Give us about 30 seconds...R

' + + '

Give us about 30 seconds...

' + 'We\'re initializing our connection, redirecting you to your device at ' + tokenData.domains[0] + ', which will then take a few seconds to initialize as it gets your https certificates for peer-to-peer, end-to-end encryption' diff --git a/lib/extensions/admin/dist/index.tab b/lib/extensions/admin/dist/index.tab new file mode 100644 index 0000000..b3448e7 --- /dev/null +++ b/lib/extensions/admin/dist/index.tab @@ -0,0 +1,5 @@ +channel version date +alpha v0.15.5 2018-06-14T09:56:53Z +prod v0.15.4 2018-06-14T09:37:22Z +beta v0.15.3 2018-06-14T07:07:21Z +prod v0.12.0 2018-06-07T07:43:21Z diff --git a/lib/extensions/admin/dist/upgrade.js b/lib/extensions/admin/dist/upgrade.js new file mode 100644 index 0000000..1e8bd62 --- /dev/null +++ b/lib/extensions/admin/dist/upgrade.js @@ -0,0 +1,4 @@ +'use strict'; +module.exports = function () { + return "placeholder upgrade: nothing to do yet"; +}; diff --git a/lib/extensions/admin/index.html b/lib/extensions/admin/index.html index d2bfd48..aa94aba 100644 --- a/lib/extensions/admin/index.html +++ b/lib/extensions/admin/index.html @@ -25,9 +25,32 @@

Telebit

-

Access anything, anywhere, anytime.

+

Friends don't let friends localhost.

+

Friends enable friends to share anything, access anywhere, connect anytime.

+
+
+

Share and Test over HTTPS

+

End-to-End Encryption with Free (or custom) Domains

+
$ telebit http 3000
+ +
> Serving localhost:3000 as https://lucky-duck-42.telebit.cloud
+> Go forth and share!
+> ex: curl https://lucky-duck-42.telebit.cloud
+
+
+

Remote and Pair over SSH

+

Securely As Needed or Conveniently Always On

+
$ telebit ssh 22
+ +
> Serving ssh at lucky-duck-42.telebit.cloud on port 5050
+> ex: ssh lucky-duck-42.telebit.cloud -p 5050
+> ex: ssh lucky-duck-42.telebit.cloud -o \
+   ProxyCommand='openssl s_client -connect %h:443 -quiet'
+
+
+

1. Install Telebit