23 lines
434 B
JavaScript
Raw Normal View History

2019-11-01 04:12:40 -06:00
"use strict";
2020-01-10 17:51:25 -07:00
var app = require("./my-express-app.js");
2019-11-01 04:12:40 -06:00
2020-01-10 17:51:25 -07:00
app.get("/hello", function(req, res) {
res.end("Hello, Encrypted World!");
});
2019-11-01 04:12:40 -06:00
//require("greenlock-express")
require("../../")
2020-01-10 17:51:25 -07:00
.init({
packageRoot: __dirname,
configDir: "./greenlock.d",
maintainerEmail: "jon@example.com",
2019-11-01 04:12:40 -06:00
2020-01-10 17:51:25 -07:00
cluster: false
2019-11-01 15:14:07 -06:00
})
2020-01-10 17:51:25 -07:00
// Serves on 80 and 443
// Get's SSL certificates magically!
.serve(app);