mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			587 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			587 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| var Greenlock = require("./");
 | |
| var greenlockOptions = {
 | |
| 	cluster: false,
 | |
| 
 | |
| 	maintainerEmail: "greenlock-test@rootprojects.org",
 | |
| 	servername: "foo-gl.test.utahrust.com",
 | |
| 	serverId: "bowie.local"
 | |
| 
 | |
| 	/*
 | |
|   manager: {
 | |
|     module: "greenlock-manager-sequelize",
 | |
|     dbUrl: "postgres://foo@bar:baz/quux"
 | |
|   }
 | |
|   */
 | |
| };
 | |
| 
 | |
| 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");
 | |
| 	});
 |