greenlock-express.js/examples/serve.js

15 lines
393 B
JavaScript
Raw Permalink Normal View History

2015-12-16 22:34:01 +00:00
'use strict';
2015-12-17 08:44:55 +00:00
// Note: using staging server url, remove .testing() for production
var lex = require('letsencrypt-express').testing();
2015-12-16 22:34:01 +00:00
var express = require('express');
var app = express();
2015-12-17 08:44:55 +00:00
app.use('/', function (req, res) {
2015-12-16 22:34:01 +00:00
res.send({ success: true });
});
2015-12-17 08:44:55 +00:00
lex.create('./letsencrypt.config', app).listen([80], [443, 5001], function () {
console.log("ENCRYPT __ALL__ THE DOMAINS!");
});