From 61651c213e6ddb2b4389cddfa867022ca56e3f26 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Wed, 13 Mar 2019 14:59:47 +0200 Subject: [PATCH] Fix empty Redis client in auto HTTPS certificates --- ceryx/nginx/lualib/https.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceryx/nginx/lualib/https.lua b/ceryx/nginx/lualib/https.lua index d17709e..fb37c73 100644 --- a/ceryx/nginx/lualib/https.lua +++ b/ceryx/nginx/lualib/https.lua @@ -9,8 +9,9 @@ local routes = require "ceryx.routes" auto_ssl:set( "allow_domain", function(domain) + local redisClient = redis:client() local host = domain - local target = routes.getTargetForSource(host) + local target = routes.getTargetForSource(host, redisClient) if target == nil then return target