fix return value of clusterstore.connect and disable auth basic for LE challenges
This commit is contained in:
parent
b429201ecc
commit
6a65104e7f
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# set location for challenges
|
||||
location ~ ^/.well-known/acme-challenge/ {
|
||||
root /var/tmp/bunkerweb/lets-encrypt;
|
||||
auth_basic off;
|
||||
}
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in New Issue