From aa1c7c96c75f4ef9fcd71fd435785c6c2ca91b74 Mon Sep 17 00:00:00 2001 From: shelvacu <1731537+shelvacu@users.noreply.github.com> Date: Wed, 12 Feb 2025 17:26:52 -0800 Subject: [PATCH] README.md: Recommend lua-load-per-thread rather than lua-load [lua-load-per-thread][1] is more performant and auth-request doesn't use any global vars so it will work just fine. [1]: https://docs.haproxy.org/3.1/configuration.html#3.1-lua-load-per-thread --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f719d9a..c3db739 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ loosely based on the [ngx_http_auth_request_module] module for nginx. global # *snip* lua-prepend-path /usr/share/haproxy/?/http.lua # If haproxy-lua-http is saved as /usr/share/haproxy/haproxy-lua-http/http.lua - lua-load /usr/share/haproxy/auth-request.lua + lua-load-per-thread /usr/share/haproxy/auth-request.lua # You may want just lua-load in earlier versions of haproxy. ``` 2. Define a backend that is used for the subrequests: