Sorting files in stuff, ignoring auth for acme-challange

This commit is contained in:
MrFry 2020-08-30 09:55:47 +02:00
parent fe8503a43e
commit 79635f27b4
7 changed files with 13 additions and 8 deletions

View file

@ -27,7 +27,7 @@ module.exports = function (options) {
})
// FIXME Allowing all urls with _next in it, but not in params
if (req.url.split('?')[0].includes('_next')) {
if (req.url.split('?')[0].includes('_next') || req.url.split('?')[0].includes('well-known/acme-challenge')) {
req.session = { isException: true }
next()
return