Issue-Id: OCS-95
Change-Id: Id3206a2da74247c27f2e994fd514afc8d94e21dd
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
#Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
if ($http_X_Driver_Parameter) {
- access_by_lua_block {
+ rewrite_by_lua_block {
local driver_manager = require('plugins.driver_manager')
driver_manager.access()
}
set $apiurl "";
# Lua files
- # rewrite_by_lua_file luaext/openoapirouter.lua;
- # access_by_lua_file luaext/execute_auth.lua;
+ rewrite_by_lua_file luaext/openoapirouter.lua;
+ access_by_lua_file luaext/execute_auth.lua;
proxy_pass http://$apiserver;
}
#Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
if ($http_X_Driver_Parameter) {
- access_by_lua_block {
+ rewrite_by_lua_block {
local driver_manager = require('plugins.driver_manager')
driver_manager.access()
}