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.conf9
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf9
2 files changed, 18 insertions, 0 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 2b9f806..c0ffe3c 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
@@ -58,6 +58,15 @@ server {
proxy_pass http://$backend;
}
location ~ ^/openoapi/([^/]+)(/[Vv][^/]*)?(.*) {
+
+ #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
+ if ($http_X_Driver_Parameter) {
+ access_by_lua_block {
+ local driver_manager = require('plugins.driver_manager')
+ driver_manager.access()
+ }
+ }
+
set $apiname $1;
set $apiversion $2;
set $apiserver "fallback";
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 0b9ddda..dd5375d 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
@@ -58,6 +58,15 @@ server {
proxy_pass http://$backend;
}
location ~ ^/openoapi/([^/]+)(/[Vv][^/]*)?(.*) {
+
+ #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
+ if ($http_X_Driver_Parameter) {
+ access_by_lua_block {
+ local driver_manager = require('plugins.driver_manager')
+ driver_manager.access()
+ }
+ }
+
set $apiname $1;
set $apiversion $2;
set $apiserver "fallback";