added stuff for letsencrypt

This commit is contained in:
Martin Donnelly 2020-04-17 14:44:46 +01:00
parent 9b46955f96
commit 76e3662034
3 changed files with 1 additions and 1 deletions

2
app.js
View File

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