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.
This commit is contained in:
Martin Stiborsky 2017-04-11 09:43:33 +02:00 committed by GitHub
parent 6ed6475e87
commit beb17f39ab

View file

@ -43,7 +43,7 @@ http {
{{ end }} {{ end }}
# lua section to return proper error codes when custom pages are used # 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 { init_by_lua_block {
require("error_page") require("error_page")
} }