greenlock-express.js/examples/serve.js

13 lines
247 B
JavaScript
Raw Normal View History

2015-12-16 22:34:01 +00:00
'use strict';
//var le = require('letsencrypt-express');
var le = require('../');
var express = require('express');
var app = express();
app.use(function (req, res) {
res.send({ success: true });
});
le.create(app).listen([80], [443, 5001]);