This commit is contained in:
2021-11-28 16:20:29 +08:00
parent 9c4e89cc4b
commit d554545367
+3 -2
View File
@@ -16,9 +16,11 @@ local TaskTypes = {
local task_server = ngx.var.task_server
local htyuc = ngx.var.htyuc
local host = ngx.var.host
ngx.log(ngx.INFO, "TASK_SERVER -> ", task_server)
ngx.log(ngx.INFO, "HTYUC -> ", htyuc)
ngx.log(ngx.INFO, "HOST -> ", host)
local file_dir = ngx.var.tmp_file_dir
local file
@@ -54,7 +56,6 @@ local function cleanupString(str, remove)
end
local function verifyJwtToken(token)
local http = require "resty.http"
local httpc = http.new()
local verify_jwt_url = string.format("%s/api/v1/uc/verify_jwt_token", htyuc)
@@ -66,7 +67,7 @@ local function verifyJwtToken(token)
{
method = "POST",
headers = {
-- ["Host"] = $host, <- todo use $host from nginx
["Host"] = host,
["Authorization"] = token,
},
}