Fixed nginx conf issue

This commit is contained in:
2024-08-07 22:35:30 -04:00
parent e29fc6b2a3
commit c42a44be2c
2 changed files with 14 additions and 10 deletions
+1 -4
View File
@@ -60,8 +60,6 @@ http {
local res, err = red:hgetall("proxy_Host_"..domain)
local res = red:array_to_hash(res)
ngx.ctx.targetInfo = res
if not res["ip"] then
if connect("/var/run/proxy_lookup.socket") then
assert(socket:send(json.encode({domain = domain})))
@@ -76,14 +74,13 @@ http {
end
end
ngx.ctx.targetInfo = res
if not res["ip"] then
ngx.log(ngx.ERR, "no host found for key ", domain)
ngx.exit(406)
return false
end
ngx.ctx.targetInfo = res
ngx.ctx.toAllow = true;
if res['wildcard_parent'] then