| 
									
										
										
										
											2019-11-03 02:51:32 -07:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require('greenlock-express') | 
					
						
							|  |  |  |     .init(function() { | 
					
						
							| 
									
										
										
										
											2019-11-05 02:50:27 -07:00
										 |  |  |         return { | 
					
						
							|  |  |  |             greenlock: require('./greenlock.js'), | 
					
						
							| 
									
										
										
										
											2019-11-03 02:51:32 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-05 02:50:27 -07:00
										 |  |  |             // whether or not to run at cloudscale
 | 
					
						
							|  |  |  |             cluster: false | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2019-11-03 02:51:32 -07:00
										 |  |  |     }) | 
					
						
							|  |  |  |     .ready(function(glx) { | 
					
						
							|  |  |  |         var app = require('./app.js'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Serves on 80 and 443
 | 
					
						
							|  |  |  |         // Get's SSL certificates magically!
 | 
					
						
							|  |  |  |         glx.serveApp(app); | 
					
						
							|  |  |  |     }); |