Commit Graph

3 Commits

Author SHA1 Message Date
Martin Weinelt
db155a44a0 Revert "nginx.tests: migrate most to nspawn containers" 2026-06-28 12:43:25 +02:00
Martin Weinelt
b767296f88 nginx.tests: migrate most to nspawn containers
With a few exceptions where one relies on specialisations and the other
was proxyprotocol.
2026-06-28 03:55:20 +02:00
Ilan Joselevich
eaffe290dd nixos/nginx: add lua option for Lua scripting support
Add `services.nginx.lua.{enable,extraPackages}` to enable OpenResty's
lua-nginx-module on a stock nginx. When enabled it adds the module,
includes lua-resty-core, and wires up lua_package_path /
lua_package_cpath (and lua_ssl_trusted_certificate) from a
luajit_openresty package set built from extraPackages.

When the configured package already bundles Lua (openresty), the module
and bundled libraries are not re-added; only the search path is set up so
its own lualib stays in use.

Migrate the openresty-lua test to the new option and add an nginx-lua
test covering the stock-nginx path.

Assisted-by: Claude:claude-opus-4-8
2026-06-25 00:56:45 +03:00