19 lines
		
	
	
		
			396 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			396 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| require('greenlock-express')
 | |
|     .init(function() {
 | |
|         return {
 | |
|             packageRoot: __dirname,
 | |
| 
 | |
|             // whether or not to run at cloudscale
 | |
|             cluster: false
 | |
|         };
 | |
|     })
 | |
|     .ready(function(glx) {
 | |
|         var app = require('./app.js');
 | |
| 
 | |
|         // Serves on 80 and 443
 | |
|         // Get's SSL certificates magically!
 | |
|         glx.serveApp(app);
 | |
|     });
 |