mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			393 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			393 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
// Note: using staging server url, remove .testing() for production
 | 
						|
var lex = require('letsencrypt-express').testing();
 | 
						|
var express = require('express');
 | 
						|
var app = express();
 | 
						|
 | 
						|
app.use('/', function (req, res) {
 | 
						|
  res.send({ success: true });
 | 
						|
});
 | 
						|
 | 
						|
lex.create('./letsencrypt.config', app).listen([80], [443, 5001], function () {
 | 
						|
  console.log("ENCRYPT __ALL__ THE DOMAINS!");
 | 
						|
});
 |