walnut.js/walnut.js

36 lines
629 B
JavaScript
Raw Normal View History

2015-02-12 09:40:37 +00:00
var holepunch = require('./holepunch/beacon');
var config = require('./device.json')
var ports ;
ports = [
{ private: 22
, public: 65022
, protocol: 'tcp'
, ttl: 0
, test: { service: 'ssh' }
, testable: false
}
, { private: 65443
, public: 65443
, protocol: 'tcp'
, ttl: 0
, test: { service: 'https' }
}
, { private: 65080
, public: 65080
, protocol: 'tcp'
, ttl: 0
, test: { service: 'http' }
}
];
holepunch.run([
'aj.daplie.com'
, 'coolaj86.com'
, 'prod.coolaj86.com'
, 'production.coolaj86.com'
], ports).then(function () {
2015-02-14 18:43:04 +00:00
// TODO use as module
2015-02-12 09:40:37 +00:00
require('./vhost-sni-server.js');
});