greenlock.js-ARCHIVED/bin/tmpl/server.tmpl.js

19 rader
396 B
JavaScript
Normal vy Historik

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