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:
parent
6ed6475e87
commit
beb17f39ab
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue