2019-10-27 05:52:19 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var Greenlock = require("./");
|
|
|
|
var greenlockOptions = {
|
|
|
|
cluster: false,
|
|
|
|
|
2019-10-27 07:19:44 +00:00
|
|
|
serverId: "bowie.local",
|
2019-10-27 05:52:19 +00:00
|
|
|
servername: "foo-gl.test.utahrust.com",
|
2019-10-27 07:19:44 +00:00
|
|
|
maintainerEmail: "greenlock-test@rootprojects.org",
|
2019-10-27 05:52:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
manager: {
|
|
|
|
module: "greenlock-manager-sequelize",
|
|
|
|
dbUrl: "postgres://foo@bar:baz/quux"
|
|
|
|
}
|
|
|
|
*/
|
2019-10-27 07:19:44 +00:00
|
|
|
|
|
|
|
challenges: {
|
|
|
|
"dns-01": {
|
|
|
|
module: "acme-dns-01-digitalocean"
|
|
|
|
}
|
|
|
|
}
|
2019-10-27 05:52:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Greenlock.create(greenlockOptions)
|
|
|
|
.worker(function(glx) {
|
|
|
|
console.info();
|
|
|
|
console.info("Hello from worker");
|
|
|
|
|
|
|
|
glx.serveApp(function(req, res) {
|
|
|
|
res.end("Hello, Encrypted World!");
|
|
|
|
});
|
|
|
|
})
|
|
|
|
.master(function() {
|
|
|
|
console.log("Hello from master");
|
|
|
|
});
|