Closed PunkHaz4rd closed 7 years ago
I don't do node.js myself, so I wouldn't know. I would guess that would depend on what framework you use to route the incoming HTTP requests...
(Side note: why are you not using Heroku' new automated certificate management feature? It pretty much deprecates this plugin here, except if you're using the free plan.)
Oh :/ I didn't know it existed in the first place. Sorry.
No problem. Still a valid question for users of the free plan. I added a note about ACM at the top of the README, since ACM is new, and was made available after I published this plugin.
So I got this working using NodeJS with this route:
router.get('/.well-known/acme-challenge/:str', function(req, res){ res.send(process.env.LETS_ENCRYPT_CHALLENGE); });
Thanks. Committed a sample node.js script that uses that.
Is there a way for you to provide an example of server configuration for NodeJS user ? Thanks