2016-08-16 17:05:41 +00:00
|
|
|
'use strict';
|
|
|
|
|
2017-01-25 22:02:16 +00:00
|
|
|
//require('greenlock-express')
|
2016-08-16 17:05:41 +00:00
|
|
|
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);
|