swtseaman commented on issue #8636:
URL: https://github.com/apache/apisix/issues/8636#issuecomment-1376902710

   找到方法了,方法分享一下:
   
   1、按照文档开发插件 xxx.lua
   2、将xxx.lua放到apisix容器的/usr/local/apisix/apisix/plugins/
   ```
   docker cp xxx.lua docker-id:/usr/local/apisix/apisix/plugins/
   ```
   3、修改apisix_conf/config.yaml, 新增配置
   ```
   plugins:
     - xxx
   ```
   4、重启apisix 
   ```
   docker  restart docker-id
   ```
   5、导出schema.json
   ```
   curl localhost:9092/v1/schema > schema.json
   ```
   6、将schema.json放到apisix-dashboard的覆盖原配置
   ```
   docker cp schema.json docker-id:/usr/local/apisix-dashboard/conf/
   ```
   7、重启 dashboard
   ```
   docker restart dashboard-id
   ```
   之后就可以在dashboard后台新建或修改路由,选择自定义插件了


-- 
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