Skip to content

Instantly share code, notes, and snippets.

@voronenko-p
Created March 29, 2020 11:21
Show Gist options
  • Save voronenko-p/2dc58b8f6cbf6e83cf3d86190ea44af4 to your computer and use it in GitHub Desktop.
Save voronenko-p/2dc58b8f6cbf6e83cf3d86190ea44af4 to your computer and use it in GitHub Desktop.
---[[ runs in the 'access_by_lua_block'
function plugin:access(plugin_conf)
-- your custom code here
kong.log.inspect(plugin_conf) -- check the logs for a pretty-printed config!
ngx.req.set_header(plugin_conf.request_header, "this is on a request")
end --]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment