added stuff for letsencrypt

This commit is contained in:
Martin Donnelly 2020-04-17 14:45:53 +01:00
parent 76e3662034
commit 2b19d6f97d

2
app.js
View File

@ -51,7 +51,7 @@ app.all('/*', (req, res, next) => {
next(); next();
}); });
app.use('/.well-known/acme-challenge', express.static('.well-known')); app.use('/.well-known/acme-challenge', express.static('.well-known/acme-challenge'));
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.sendFile(path.join(__dirname, indexView)); res.sendFile(path.join(__dirname, indexView));