greenlock-express.js/examples/simple.js

21 lines
343 B
JavaScript
Raw Normal View History

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