Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NodeJS Route for LetsEncrypt cert validation
// Lets encrypt response
var letsEncryptUrl = process.env.LETS_ENCRYPT;
var letsEncryptResponse = process.env.LETS_ENCRYPT_RESPONSE;
if( letsEncryptResponse != undefined && letsEncryptResponse != undefined) {
self.app.get('/.well-known/acme-challenge/' + letsEncryptUrl, function (req, res) {
res.send(letsEncryptResponse);
res.end();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.