greenlock-express.js/examples/force-renew.js

23 lines
412 B
JavaScript
Raw Normal View History

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!');
})
, renewWithin: (91 * 24 * 60 * 60 * 1000)
, renewBy: (90 * 24 * 60 * 60 * 1000)
, debug: true
}).listen(80, 443);