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