Update README.md

This commit is contained in:
AJ ONeal 2015-12-17 02:35:40 -08:00
parent c9afdd8a05
commit e00d0a6313
1 changed files with 6 additions and 1 deletions

View File

@ -18,13 +18,18 @@ npm install --save letsencrypt-express
// Note: using staging server url, remove .testing() for production // Note: using staging server url, remove .testing() for production
var lex = require('letsencrypt-express').testing(); var lex = require('letsencrypt-express').testing();
var express = require('express'); var express = require('express');
var app = express(); var app = express();
app.use('/', function (req, res) {
// A happy little express app
app.use(function (req, res) {
res.send({ success: true }); res.send({ success: true });
}); });
// assumes ~/letsencrypt/etc as the configDir and ports 80, 443, and 5001 by default
lex.create(app).listen(); lex.create(app).listen();
``` ```