2
0
mirror of https://github.com/therootcompany/greenlock.js.git synced 2025-03-06 08:40:41 +00:00
greenlock.js/bin/tmpl/server.tmpl.js

21 lines
461 B
JavaScript
Raw Normal View History

'use strict';
2019-11-18 22:55:29 -07:00
var app = require('./app.js');
require('greenlock-express')
2019-11-18 22:55:29 -07:00
.init({
packageRoot: __dirname,
2019-11-18 22:55:29 -07:00
// contact for security and critical bug notices
//maintainerEmail: pkg.author,
2020-01-09 03:36:07 -07:00
// where to look for configuration
2019-11-18 22:55:29 -07:00
configDir: './greenlock.d',
// whether or not to run at cloudscale
cluster: false
})
// Serves on 80 and 443
// Get's SSL certificates magically!
.serve(app);