AJ ONeal
5 years ago
11 changed files with 153 additions and 83 deletions
@ -0,0 +1,30 @@ |
|||||
|
'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,
|
||||
|
|
||||
|
// contact for security and critical bug notices
|
||||
|
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); |
||||
|
}); |
@ -1,18 +1,20 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
|
var app = require('./app.js'); |
||||
|
|
||||
require('greenlock-express') |
require('greenlock-express') |
||||
.init(function() { |
.init({ |
||||
return { |
packageRoot: __dirname, |
||||
packageRoot: __dirname, |
|
||||
|
|
||||
// whether or not to run at cloudscale
|
// contact for security and critical bug notices
|
||||
cluster: false |
//maintainerEmail: pkg.author,
|
||||
}; |
|
||||
}) |
|
||||
.ready(function(glx) { |
|
||||
var app = require('./app.js'); |
|
||||
|
|
||||
// Serves on 80 and 443
|
// contact for security and critical bug notices
|
||||
// Get's SSL certificates magically!
|
configDir: './greenlock.d', |
||||
glx.serveApp(app); |
|
||||
}); |
// whether or not to run at cloudscale
|
||||
|
cluster: false |
||||
|
}) |
||||
|
// Serves on 80 and 443
|
||||
|
// Get's SSL certificates magically!
|
||||
|
.serve(app); |
||||
|
Loading…
Reference in new issue