add /.well-known/acme-challenge/xxxxxx exception

This commit is contained in:
AJ ONeal 2015-12-23 03:13:16 +00:00
parent 1652494cd3
commit f92c45f53e
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ module.exports.create = function (securePort, insecurePort, info, serverCallback
if (/redirect-www.org$/.test(host) && useAppInsecurely(req, res)) {
return true;
}
if (/^\/.well-known\/acme-challenge/.test(req.url) && useAppInsecurely(req, res)) {
console.log('exception for acme-challenge');
return true;
}
var escapeHtml = require('escape-html');
var newLocation = 'https://'