mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			423 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			423 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | '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!'); | ||
|  |   }) | ||
|  | 
 | ||
|  | , renewWithin: (91 * 24 * 60 * 60 * 1000) | ||
|  | , renewBy: (90 * 24 * 60 * 60 * 1000) | ||
|  | 
 | ||
|  | , debug: true | ||
|  | }).listen(80, 443); |