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