Skip to content

Commit

Permalink
Update keys prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarumaDocker committed Nov 6, 2024
1 parent 19019f4 commit 9d710cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/conf.d/domain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ init_by_lua_block {
local start_index, end_index = string.find(origin_host, ".", 1, true)
local host_domain = string.sub(origin_host, 1, start_index - 1)
local root_domain = string.sub(origin_host, start_index)
local key = host_domain .. "_nodes_weights"
local key = "domain_nodes_weights::" .. host_domain

local res, err

Expand Down Expand Up @@ -141,7 +141,7 @@ init_by_lua_block {
end
red:select(0)

local user_id, err = red:get(key_hash)
local user_id, err = red:get("api_key_hash::" .. key_hash)
if not user_id then
ngx.log(ngx.ERR, "failed to get api_key: ", err)
red:close()
Expand Down

0 comments on commit 9d710cd

Please sign in to comment.