2
0
mirror of https://github.com/therootcompany/greenlock.js.git synced 2025-03-06 00:30:41 +00:00
greenlock.js/bin/tmpl/server.tmpl.js
2019-11-05 02:50:27 -07:00

19 lines
410 B
JavaScript

'use strict';
require('greenlock-express')
.init(function() {
return {
greenlock: require('./greenlock.js'),
// 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);
});