eppgate
v0.4.6
Published
Domain Registrar
Downloads
12
Readme
eppgate: epp for reseller
域名分销体系结构为:Registry => Registrar => Reseller。
eppgate将registrar的帐号分成多份,供更多reseller使用。
Installing
npm install eppgate
Using
var fs = require('fs');
var Run = require('eppgate');
var cmd = require('epp/CMD');
var nml = require('nml');
var epp = new Run({
mysql: {
host: "localhost",
user: "root",
password: "********",
database: "registrar"
},
epp: {
host: "epp.your-nic.com",
port: 700,
key : fs.readFileSync("sert/my.pem"),
cert: fs.readFileSync("sert/my.crt"),
timeout: 240*1000,
clID: "username",
pw : "password"
},
pay: {
host: "127.0.0.1",
port: 10101,
path: "/api"
}
});
epp.submit(cmd.poll(), function(req, res) {
console.log(nml.stringify(req)+nml.stringify(res));
});
Dependences
mysql
nml
epp