fix return value of clusterstore.connect and disable auth basic for LE challenges

This commit is contained in:
bunkerity 2023-04-03 14:41:57 +02:00
parent b429201ecc
commit 6a65104e7f
3 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,11 @@ function M:connect()
if variables["REDIS_SSL"] == "yes" then
options["ssl"] = true
end
return redis.connect(variables["REDIS_HOST"], tonumber(variables["REDIS_PORT"]), options)
local ok, err = redis_client:connect(variables["REDIS_HOST"], tonumber(variables["REDIS_PORT"]), options)
if not ok then
return false, err
end
return redis_client
end
function M:close(redis_client)

View File

@ -1,4 +1,5 @@
# set location for challenges
location ~ ^/.well-known/acme-challenge/ {
root /var/tmp/bunkerweb/lets-encrypt;
auth_basic off;
}

View File

@ -1,6 +1,7 @@
# set location for challenges
location ~ ^/.well-known/acme-challenge/ {
root /var/tmp/bunkerweb/lets-encrypt;
auth_basic off;
}
{% if AUTO_LETS_ENCRYPT == "yes" %}