This took me a while to figure out, so I figure I'd leave some instructions on how I got it done in case someone else runs into the same problems.
I needed to allow directory access to the .well-known directory in Express to be able to use certbot to generate SSL certificates.
Install the serve-index package from npm
npm install serve-index
Import it
var serveIndex = require('serve-index');
Then declare the middleware
app.use('/.well-known', express.static('.well-known'), serveIndex('.well-known'));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With