2016-08-16 17:05:41 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//require('letsencrypt-express')
|
|
|
|
require('../').create({
|
|
|
|
|
|
|
|
server: 'staging'
|
|
|
|
|
2016-08-16 17:26:54 +00:00
|
|
|
, email: 'john.doe@example.com'
|
2016-08-16 17:05:41 +00:00
|
|
|
|
|
|
|
, agreeTos: true
|
|
|
|
|
2016-08-16 17:26:54 +00:00
|
|
|
, approvedDomains: [ 'example.com', 'www.example.com' ]
|
2016-08-16 17:05:41 +00:00
|
|
|
|
|
|
|
, app: require('express')().use('/', function (req, res) {
|
|
|
|
res.end('Hello, World!');
|
|
|
|
})
|
|
|
|
|
|
|
|
, debug: true
|
|
|
|
|
|
|
|
}).listen(80, 443);
|