add /.well-known/acme-challenge/xxxxxx exception
This commit is contained in:
parent
1652494cd3
commit
f92c45f53e
|
@ -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://'
|
||||
|
|
Loading…
Reference in New Issue