Open YellowOnion opened 1 year ago
I think we need to pull: https://github.com/openresty/lua-resty-core & https://github.com/openresty/lua-resty-lrucache as per the prereqs.
{
httpConfig = let
lua-resty-core = pkgs.fetchFromGitHub {
owner = "openresty";
repo = "lua-resty-core";
rev = "c48e90a8fc9d974d8a6a369e031940cedf473789";
sha256 = "obwyxHSot1Lb2c1dNqJor3inPou+UIBrqldbkNBCQQk=";
};
in
''
lua_package_path "${lua-resty-core}/lib/?.lua;;";
init_by_lua_block {
require "resty.core"
collectgarbage("collect")
}
include /etc/nginx-rtmp/http.conf;
'';
}
I have this and it's complaining about lrucache missing, so I guess that's on the right track.
Had an error in this, httpConfig
should have been commonHttpConfig
{
commonHttpConfig =
let
lua-resty-core = pkgs.fetchFromGitHub {
owner = "openresty";
repo = "lua-resty-core";
rev = "v0.1.24";
sha256 = "sha256-obwyxHSot1Lb2c1dNqJor3inPou+UIBrqldbkNBCQQk=";
};
lua-resty-lrucache = pkgs.fetchFromGitHub {
owner = "openresty";
repo = "lua-resty-lrucache";
rev = "v0.13";
sha256 = "sha256-4bb5o8QWNm6EtX8xC7euv8scZrZdOdKOpBdu4sWegU4=";
};
in
''
lua_package_path "${lua-resty-core}/lib/?.lua;${lua-resty-lrucache}/lib/?.lua;;";
'';
}
worked for me
Describe the bug
I have this in my configuration.nix:
gives me this error when trying to use the module:
Additional context
https://github.com/openresty/lua-nginx-module/issues/1633
This mentions a
lua_package_path
directive requirement, but I can't seem to find what variable to use for this.Notify maintainers
@thoughtpolice @raskin @fpletz @globin @ajs124
Metadata