mirror of
				https://github.com/therootcompany/greenlock.js.git
				synced 2024-11-16 17:29:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
var app = require('./app.js');
 | 
						|
 | 
						|
require('greenlock-express')
 | 
						|
    .init({
 | 
						|
        packageRoot: __dirname,
 | 
						|
 | 
						|
        // contact for security and critical bug notices
 | 
						|
        //maintainerEmail: pkg.author,
 | 
						|
 | 
						|
        // where to look for configuration
 | 
						|
        configDir: './greenlock.d',
 | 
						|
 | 
						|
        // whether or not to run at cloudscale
 | 
						|
        cluster: false
 | 
						|
    })
 | 
						|
    // Serves on 80 and 443
 | 
						|
    // Get's SSL certificates magically!
 | 
						|
    .serve(app);
 |