whitelist - fix /.well-known/acme-challenge whitelist for let's encrypt
This commit is contained in:
parent
2ccfb26e81
commit
92ee40819e
|
@ -117,7 +117,7 @@ for k, v in pairs(whitelist_uri) do
|
|||
end
|
||||
|
||||
-- check if it's certbot
|
||||
if use_lets_encrypt and string.match(ngx.var.request_uri, "^/.well-known/acme-challenge/") then
|
||||
if use_lets_encrypt and string.match(ngx.var.request_uri, "^/%.well%-known/acme%-challenge/[A-Za-z0-9%-%_]+$") then
|
||||
logger.log(ngx.INFO, "LETSENCRYPT", "got a visit from Let's Encrypt")
|
||||
ngx.exit(ngx.OK)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue