| 
									
										
										
										
											2019-10-26 23:52:19 -06:00
										 |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var Greenlock = require("./"); | 
					
						
							|  |  |  | var greenlockOptions = { | 
					
						
							|  |  |  | 	cluster: false, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-27 01:19:44 -06:00
										 |  |  | 	serverId: "bowie.local", | 
					
						
							| 
									
										
										
										
											2019-10-26 23:52:19 -06:00
										 |  |  | 	servername: "foo-gl.test.utahrust.com", | 
					
						
							| 
									
										
										
										
											2019-10-27 01:19:44 -06:00
										 |  |  | 	maintainerEmail: "greenlock-test@rootprojects.org", | 
					
						
							| 
									
										
										
										
											2019-10-26 23:52:19 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* | 
					
						
							|  |  |  |   manager: { | 
					
						
							|  |  |  |     module: "greenlock-manager-sequelize", | 
					
						
							|  |  |  |     dbUrl: "postgres://foo@bar:baz/quux" | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   */ | 
					
						
							| 
									
										
										
										
											2019-10-27 01:19:44 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	challenges: { | 
					
						
							|  |  |  | 		"dns-01": { | 
					
						
							|  |  |  | 			module: "acme-dns-01-digitalocean" | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-10-26 23:52:19 -06:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Greenlock.create(greenlockOptions) | 
					
						
							|  |  |  | 	.worker(function(glx) { | 
					
						
							|  |  |  | 		console.info(); | 
					
						
							|  |  |  | 		console.info("Hello from worker"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		glx.serveApp(function(req, res) { | 
					
						
							|  |  |  | 			res.end("Hello, Encrypted World!"); | 
					
						
							|  |  |  | 		}); | 
					
						
							|  |  |  | 	}) | 
					
						
							|  |  |  | 	.master(function() { | 
					
						
							|  |  |  | 		console.log("Hello from master"); | 
					
						
							|  |  |  | 	}); |