You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/15 08:24:50 UTC

[GitHub] [apisix-go-plugin-runner] wangfeng22 commented on issue #99: request help: 有多个插件需要同时启动,应该怎么配置

wangfeng22 commented on issue #99:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/99#issuecomment-1214747965

   > ### Issue description
   > 我有多个插件需要同时注册,配置文件应该怎么定义
   > 
   > ### Environment
   > 像这样 ext-plugin: cmd: ["/path/to/apisix-go-plugin-runner/go-runner", "run"] cmd: ["/path/to/apisix-go-plugin-runner/go-runner2", "run"]
   
   推荐应该在plugin里配置,比如
   ```
    "plugins": {
       "ext-plugin-post-req": {
         "conf": [
           {
             "name": "response-rewrite",
             "value": "{\"status\":200,\"headers\":{\"a\":\"c\"},\"body\":\"aaa\"}"
           },
           {
             "name": "say",
             "value": "{\"body\":\"aaa\"}"
           }
         ],
         "disable": false
       }
     }
   ```
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org