summaryrefslogtreecommitdiffstats
path: root/msb-core
diff options
context:
space:
mode:
Diffstat (limited to 'msb-core')
-rw-r--r--msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf6
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf2
2 files changed, 4 insertions, 4 deletions
diff --git a/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf b/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
index 5cff7eb..6bf5e07 100644
--- a/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
+++ b/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
@@ -61,7 +61,7 @@ server {
#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()
}
@@ -73,8 +73,8 @@ server {
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;
}
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
index dd5375d..ad0bf1c 100644
--- a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
+++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
@@ -61,7 +61,7 @@ server {
#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()
}