.github/workflows .license-scripts .pongo kong/plugins/myplugin spec/myplugin .busted .editorconfig .gitattributes .gitignore .luacheckrc .luacov .travis.yml.example LICENSE README.md kong-plugin-myplugin-0.1.0-1.rockspec Kong plugin template ...
Make sure the plugin name also changed to new name redirect-custom in kong.yml, then use deck to try again. Then the service will target to your custom plugin, not the built in redirect plugin. 👍2 Sign up for free to join this conversation on GitHub. Already have an account? Sign ...
在完成pongo run 测试之后,我们可以重复测试插件的步骤进行我们自定义插件的测试 参考文章:How to Create a Custom Lua Plugin for Kong Gateway官方文档
$ kong start -c kong.conf --nginx-conf custom_nginx.template 如果您希望自定义Kong Nginx子配置文件,最终添加其他Lua处理程序或自定义lua_ *指令,则可以在此custom_nginx.template示例文件中内嵌nginx_kong.lua配置: # ---# custom_nginx.template #---worker_processes ${{NGINX_WORKER_PROCESSES}}; # c...
.github chore(ci): update build-wasm-test-filters action Feb 3, 2025 autodoc chore(scripts): remove unused autodoc scripts Jun 20, 2023 bin feat(clustering/sync): validate deltas when syncing (#14127) Jan 22, 2025 build chore(deps): bump nfpm from 2.37.1 to 2.41.2 ...
custom_plugins:该节点用于加载的附加插件列表,插件名称用逗号分隔开。使用此属性可以加载用户自定义的、Kong未提供的插件。插件将从 kong.plugins {name}.* 形式的命名空间加载。默认为空,插件列表类似于my-plugin,hello-world,custom-rate-limiting的形式。
└── <plugin-name>-<version>.rockspec 使用docker-compose启动Kong kong:image:kongenvironment:// 配置插件地址及名称KONG_LUA_PACKAGE_PATH:/kong-plugins/?.lua;;KONG_CUSTOM_PLUGINS:aes256_encryptvolumes:// 挂载插件文件-./kong/:/kong-plugins/kong/ ...
plugins = my-custom-plugin # 用户自定义插件名 现在,Kong网关会尝试从以下命名空间加载多个Lua模块: 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码运行 kong.plugins.my-custom-plugin. 其中,有些模块是必需的(例如handler模块),有些是可选的,以便实现一些额外功能。下面我们会详细描述基本插件模块以...
For a quick start with custom plugin development, check outPongoand theplugin templateexplained in detail below. Docker You can use Docker / docker-compose and a mounted volume to develop Kong by following the instructions onKong/kong-build-tools. ...
Kong version ($ kong version) 3.1.1-alpine Current Behavior Sometimes the custom plugin does not execute, but the request is forwarded to the service. This causes my request not to work properly because it should go through the plugin first. ...