2019-10-27 05:52:19 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
require("./main.js");
|
|
|
|
|
|
|
|
var Single = module.exports;
|
|
|
|
var Servers = require("./servers.js");
|
|
|
|
|
|
|
|
Single.create = function(opts) {
|
2019-10-27 09:59:49 +00:00
|
|
|
var greenlock = require("./greenlock.js").create(opts);
|
2019-10-27 07:19:44 +00:00
|
|
|
|
2019-10-27 05:52:19 +00:00
|
|
|
var servers = Servers.create(greenlock, opts);
|
|
|
|
|
|
|
|
var single = {
|
2019-10-28 07:06:43 +00:00
|
|
|
serve: function(fn) {
|
2019-10-27 05:52:19 +00:00
|
|
|
fn(servers);
|
|
|
|
return single;
|
|
|
|
},
|
|
|
|
master: function(/*fn*/) {
|
|
|
|
// ignore
|
|
|
|
//fn(master);
|
|
|
|
return single;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
return single;
|
|
|
|
};
|