Merge branch 'master' of ssh://git.coolaj86.com:22042/coolaj86/telebit-relay.js

This commit is contained in:
AJ ONeal 2018-06-15 08:46:55 +00:00
commit 92f37a515a
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@ email: 'jon@example.com' # must be valid (for certificate recovery and sec
agree_tos: true # agree to the Telebit, Greenlock, and Let's Encrypt TOSes
community_member: true # receive infrequent relevant updates
telemetry: true # contribute to project telemetric data
webmin_domain: example.com
shared_domain: xm.pl
servernames: # hostnames that direct to the Telebit Relay admin console
- telebit.example.com
- telebit.example.net

View File

@ -264,7 +264,7 @@ module.exports.create = function (state) {
//token.dynamicPorts.push(serviceport);
Devices.add(state.deviceLists, serviceport, token);
//var hri = require('human-readable-ids').hri;
//var hrname = hri.random() + '.telebit.cloud';
//var hrname = hri.random() + '.' + state.config.sharedDomain;
//token.dynamicNames.push(hrname);
// TODO restrict to authenticated device
// TODO pull servername from config
@ -275,8 +275,8 @@ module.exports.create = function (state) {
, [ 2
, 'grant'
, [ ['ssh+https', token.domains[0], 443 ]
, ['ssh', 'ssh.telebit.cloud', serviceport ]
, ['tcp', 'tcp.telebit.cloud', serviceport]
, ['ssh', 'ssh.' + state.config.sharedDomain, serviceport ]
, ['tcp', 'tcp.' + state.config.sharedDomain, serviceport]
, ['https', token.domains[0] ]
]
]