aboutsummaryrefslogtreecommitdiffstats
path: root/msb-core/openresty-ext
diff options
context:
space:
mode:
Diffstat (limited to 'msb-core/openresty-ext')
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf9
1 files changed, 9 insertions, 0 deletions
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";