update docs, add versions and upgrade script
This commit is contained in:
parent
63065d6d65
commit
06540352bf
|
@ -26,7 +26,8 @@ module.exports.authenticate = function (opts) {
|
||||||
auth = jwtoken;
|
auth = jwtoken;
|
||||||
if ('object' === typeof auth && /^.+@.+\..+$/.test(auth.subject)) {
|
if ('object' === typeof auth && /^.+@.+\..+$/.test(auth.subject)) {
|
||||||
console.log('parsed');
|
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");
|
console.log("[DEBUG] gonna send email");
|
||||||
return requestAsync({
|
return requestAsync({
|
||||||
url: 'https://api.mailgun.net/v3/telebit.cloud/messages'
|
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(',')
|
+ 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',')
|
||||||
+ '" /></head>'
|
+ '" /></head>'
|
||||||
+ '<body>'
|
+ '<body>'
|
||||||
+ '<h1>Give us about 30 seconds...R</h1>'
|
+ '<h1>Give us about 30 seconds...</h1>'
|
||||||
+ 'We\'re initializing our connection, redirecting you to your device at <a href="https://' + tokenData.domains[0] + '">'
|
+ 'We\'re initializing our connection, redirecting you to your device at <a href="https://' + tokenData.domains[0] + '">'
|
||||||
+ tokenData.domains[0]
|
+ tokenData.domains[0]
|
||||||
+ '</a>, which will then take a few seconds to initialize as it gets your https certificates for peer-to-peer, end-to-end encryption'
|
+ '</a>, which will then take a few seconds to initialize as it gets your https certificates for peer-to-peer, end-to-end encryption'
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
'use strict';
|
||||||
|
module.exports = function () {
|
||||||
|
return "placeholder upgrade: nothing to do yet";
|
||||||
|
};
|
|
@ -25,9 +25,32 @@
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<h1>Telebit</h1>
|
<h1>Telebit</h1>
|
||||||
<p>Access anything, anywhere, anytime.</p>
|
<p>Friends don't let friends localhost.</p>
|
||||||
|
<p>Friends enable friends to share anything, access anywhere, connect anytime.</p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
|
<div style="width: 800px; margin: auto;">
|
||||||
|
<div>
|
||||||
|
<h2>Share and Test over HTTPS</h2>
|
||||||
|
<p>End-to-End Encryption with Free (or custom) Domains</p>
|
||||||
|
<pre><code>$ telebit http 3000</code></pre>
|
||||||
|
|
||||||
|
<pre><code>> Serving localhost:3000 as https://lucky-duck-42.telebit.cloud
|
||||||
|
> Go forth and share!
|
||||||
|
> ex: curl https://lucky-duck-42.telebit.cloud</code></pre>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>Remote and Pair over SSH</h2>
|
||||||
|
<p>Securely As Needed or Conveniently Always On</p>
|
||||||
|
<pre><code>$ telebit ssh 22</code></pre>
|
||||||
|
|
||||||
|
<pre><code>> 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'</code></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="width: 500px; margin: auto;">
|
<div style="width: 500px; margin: auto;">
|
||||||
|
|
||||||
<h2>1. Install Telebit</h2>
|
<h2>1. Install Telebit</h2>
|
||||||
|
|
Loading…
Reference in New Issue