greenlock-express.js/examples/simple.js

21 lines
330 B
JavaScript

'use strict';
//require('greenlock-express')
require('../').create({
server: 'staging'
, email: 'john.doe@example.com'
, agreeTos: true
, approvedDomains: [ 'example.com', 'www.example.com' ]
, app: require('express')().use('/', function (req, res) {
res.end('Hello, World!');
})
, debug: true
}).listen(80, 443);