diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2016-09-19 15:57:16 +0800 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2016-09-19 15:57:16 +0800 |
commit | 6be48e1015bc20005ed31f8b857842a59e1c9dfa (patch) | |
tree | e95214c0e5e570b3399938d6eb938b9ea0f1bf2a /msb-core/openresty-ext | |
parent | 185f8b203942067d02c4b28df91e95ab1d9bc6eb (diff) |
Add scripts for external API gateway
Change-Id: Ice85f6277d0a0d54e00c60a08c687b4ba6b22183
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'msb-core/openresty-ext')
-rw-r--r-- | msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/msbconf.lua | 2 | ||||
-rw-r--r-- | msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/msbconf.lua b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/msbconf.lua index 4e820f5..de8a402 100644 --- a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/msbconf.lua +++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/msbconf.lua @@ -22,5 +22,5 @@ local _M = {} _M._VERSION = '1.0.0' return { - auth_plugin_status = "on" + auth_plugin_status = "off" }
\ No newline at end of file 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 88ab447..cb60a98 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 @@ -21,7 +21,11 @@ server { listen 80; default_type text/html; add_header X-Cache-Status $upstream_cache_status; - + + location = / { + rewrite ^ /openoui/microservices/index.html redirect; + } + location = /openoui/microservices { rewrite /openoui/microservices /openoui/microservices/index.html redirect; } |