doc: update docs and fixed typos (#5821)

This commit is contained in:
agile6v 2020-07-01 22:02:52 +08:00 committed by GitHub
parent c56baf6b15
commit 3402d07ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View file

@ -14,7 +14,7 @@ By defining functions with the following names, you can run your custom Lua code
- `init_worker`: useful for initializing some data per Nginx worker process
- `rewrite`: useful for modifying request, changing headers, redirection, dropping request, doing authentication etc
- `header`: this is called when backend response header is received, it is useful for modifying response headers
- `header_filter`: this is called when backend response header is received, it is useful for modifying response headers
- `log`: this is called when request processing is commpleted and response is delivered to the client
Check this [`hello_world`](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/lua/plugins/hello_world) plugin as a simple example or refer to [OpenID Connect integration](https://github.com/ElvinEfendi/ingress-nginx-openidc/tree/master/rootfs/etc/nginx/lua/plugins/openidc) for more advanced usage.