default acmeChallengePrefix
This commit is contained in:
parent
3d6d24fa83
commit
d9ff6bf4de
|
@ -18,7 +18,7 @@ module.exports.create = function (le) {
|
||||||
|
|
||||||
log(le.debug, "created middleware");
|
log(le.debug, "created middleware");
|
||||||
return function () {
|
return function () {
|
||||||
var prefix = le.acmeChallengePrefix; // /.well-known/acme-challenge/:token
|
var prefix = le.acmeChallengePrefix || '/.well-known/acme-challenge/';
|
||||||
|
|
||||||
return function (req, res, next) {
|
return function (req, res, next) {
|
||||||
if (0 !== req.url.indexOf(prefix)) {
|
if (0 !== req.url.indexOf(prefix)) {
|
||||||
|
|
Loading…
Reference in New Issue