good idea, +1

On Thu, Jan 7, 2021 at 7:27 PM Zhang Chao <[email protected]> wrote:

> That’s good, which separates the apisix main codes and user’s own codes.
>
> Chao Zhang
> https://github.com/tokers
>
> On January 7, 2021 at 3:58:07 PM, Zexuan Luo ([email protected])
> wrote:
>
> We can allow user to append their path to "lua_package_path", so that they
> can load their plugins and other code.
> For instance,
> Let the "lua_package_path" to be `"/opt/mycode/?.lua;original_path..."`,
> then user can put their plugin "my-plugin" as
> `/opt/mycode/apisix/plugins/my-plugin.lua`, and load it via
> ```
> plugins:
> - my-plugin
> ```
>
> This idea comes from Yong Nie's talk "微博基于 APISIX 的定制开发" in 2020 Apache
> APISIX DevCon.
> I just move it here for discussion.
>


-- 

*MembPhis*
My GitHub: https://github.com/membphis
Apache APISIX: https://github.com/apache/apisix

Reply via email to