After reading Node.js v4 gets an A+ for SSL Labs with no configuration, “Node has one of the best out-of-the-box SSL setups of any web server.” I forked the repo to work with letsencrypt.
Here’s my repo: https://github.com/RnbWd/ssltest
It turns out that there’s zero configuration necessary to get this working with letsencrypt. Assuming you’ve already installed node and generated certs on a server w/ a domain properly set up:
git clone https://github.com/RnbWd/ssltest
cd ssltest && npm install .
It automatically detects the host’s domain and assumes that certs are located in the default path -
/etc/letsencrypt/live/$domain . You could daemonize the server w/ something like pm2:
npm install -g pm2
pm2 start bin/www
I plan on developing this app a little further so that it’s even easier to get started. Probably dockerize the app in a container so that node dependencies aren’t an issue. Maybe link w/ a letsencrypt container or automate the letsencrypt installation process? I’m not sure if this if will be ‘plugin’ b/c I’m not a python developer, but I’ll def. dockerize the app and feel free to fork the repo!