> For the complete documentation index, see [llms.txt](https://waap.docs.link11.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://waap.docs.link11.com/using-the-product/how-do-i.../run-custom-code.md).

# Run custom code

To run custom Lua code before or after Link11 WAAP processes a request, use an [Edge Function](/console-walkthrough/sites/edge-functions.md).

To define code for customizing nginx's behavior or parameters, use [Proxy Templates / Advanced Configuration](/console-walkthrough/sites/proxy-templates.md#advanced-configuration).
