cll1778890283 opened a new issue, #12746:
URL: https://github.com/apache/apisix/issues/12746

   ### Description
   
   ### Description
   
   <img width="1194" height="905" alt="Image" 
src="https://github.com/user-attachments/assets/c1d1b5e2-85c2-455d-9cde-55fdb29e77aa";
 />
   
   docker run -d --name apisix-custom -p 9080:9080 -p 9443:9443  -p 9180:9180 
-p 9090:9090 --network apisix-network -v 
E:/apisix-project/code/apisix/conf/custom-config.yaml:/usr/local/apisix/conf/config.yaml
 -v 
E:/apisix-project/code/apisix/apisix/plugins/custom-plugin:/usr/local/apisix/custom-plugin/apisix/plugins
 apache/apisix:3.7.0-debian
   
   Why can't the init.lua file be loaded into the locally created sub directory 
(ale-key-auth-consumer) where I mounted the container in the 
directory:/usr/local/apisix/custom-plugin/apisix/plugins
   
   <img width="1555" height="384" alt="Image" 
src="https://github.com/user-attachments/assets/a2a906d0-bf33-43f9-8b4a-497129bf7e72";
 />
   
   
   init.lua:
   local _M = {}
   
   -- 路由的schema
    _M.schema = {
       type = "object",
       properties = {
           header = {
               type = "string",
               default = "apikey",
           },
           query = {  -- 新增:从查询参数获取密钥的字段名(默认 apikey)
               type = "string",
               default = "apikey",
           }
       }
   }
   
   -- 消费者的schema
   _M.consumer_schema = {
       type = "object",
       properties = {
           key = {
               type = "string",
               minLength = 1,
           },
       },
       required = {"key"}
   }
   
   return  _M
   
   ### Environment
   
   - APISIX version (run `apisix version`):3.7
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to