From beb17f39aba12f21fce11d35bf29f5c7532d05ce Mon Sep 17 00:00:00 2001 From: Martin Stiborsky Date: Tue, 11 Apr 2017 09:43:33 +0200 Subject: [PATCH] fixed lua_package_path in nginx.tmpl I did my own build of the nginx-ingress-controller and its docker image, but I had troubles with the `error_page.lua` module, which couldn't be loaded, there was an error in the log, module was not found. I think the lua package path is wrong, here is a fix. --- controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index 4b43abe12..ce5f4e051 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -43,7 +43,7 @@ http { {{ end }} # lua section to return proper error codes when custom pages are used - lua_package_path '.?.lua;./etc/nginx/lua/?.lua;/etc/nginx/lua/vendor/lua-resty-http/lib/?.lua;'; + lua_package_path '.?.lua;/etc/nginx/lua/?.lua;/etc/nginx/lua/vendor/lua-resty-http/lib/?.lua;'; init_by_lua_block { require("error_page") }