Skip to content

Commit

Permalink
Merge pull request #64 from sourcelair/fix-empty-redis-client
Browse files Browse the repository at this point in the history
Fix empty Redis client in auto HTTPS certificates
  • Loading branch information
parisk authored Mar 13, 2019
2 parents 7642f56 + 61651c2 commit 3ebb5e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ceryx/nginx/lualib/https.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ebb5e9

Please sign in to comment.