You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/07/12 06:40:09 UTC

[apisix] branch master updated: chore: make sure the http subsys with stream only uses the correct path (#7430)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 11bba0059 chore: make sure the http subsys with stream only uses the correct path (#7430)
11bba0059 is described below

commit 11bba0059c2a714486315c7beaf886eddd75ba60
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Tue Jul 12 14:40:03 2022 +0800

    chore: make sure the http subsys with stream only uses the correct path (#7430)
    
    Signed-off-by: spacewander <sp...@gmail.com>
---
 apisix/cli/ngx_tpl.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
index f22280766..130033be7 100644
--- a/apisix/cli/ngx_tpl.lua
+++ b/apisix/cli/ngx_tpl.lua
@@ -66,6 +66,12 @@ lua {
 
 {% if enabled_stream_plugins["prometheus"] and not enable_http then %}
 http {
+    lua_package_path  "{*extra_lua_path*}$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;]=]
+                       .. [=[{*apisix_lua_home*}/?.lua;{*apisix_lua_home*}/?/init.lua;;{*lua_path*};";
+    lua_package_cpath "{*extra_lua_cpath*}$prefix/deps/lib64/lua/5.1/?.so;]=]
+                      .. [=[$prefix/deps/lib/lua/5.1/?.so;;]=]
+                      .. [=[{*lua_cpath*};";
+
     {% if enabled_stream_plugins["prometheus"] then %}
     init_worker_by_lua_block {
         require("apisix.plugins.prometheus.exporter").http_init(true)