| 
									
										
										
										
											2019-11-18 22:55:29 -07:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require('greenlock-express') | 
					
						
							|  |  |  |     .init(function() { | 
					
						
							|  |  |  |         // var pkg = require('./package.json');
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return { | 
					
						
							|  |  |  |             // where to find .greenlockrc and set default paths
 | 
					
						
							|  |  |  |             packageRoot: __dirname, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             // name & version for ACME client user agent
 | 
					
						
							|  |  |  |             //packageAgent: pkg.name + '/' + pkg.version,
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             // contact for security and critical bug notices
 | 
					
						
							|  |  |  |             //maintainerEmail: pkg.author,
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-09 03:36:07 -07:00
										 |  |  |             // where to look for configuration
 | 
					
						
							| 
									
										
										
										
											2019-11-18 22:55:29 -07:00
										 |  |  |             configDir: './greenlock.d', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             // whether or not to run at cloudscale
 | 
					
						
							|  |  |  |             cluster: true | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |     .ready(function(glx) { | 
					
						
							|  |  |  |         var app = require('./app.js'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Serves on 80 and 443
 | 
					
						
							|  |  |  |         // Get's SSL certificates magically!
 | 
					
						
							|  |  |  |         glx.serveApp(app); | 
					
						
							|  |  |  |     }); |