tests/nixos/php-lighttpd.nix
PHP-FPM behind lighttpd over FastCGI, both Fil-C builds: the web stack the module offers, since it has no nginx switch.
λ…
"php-lighttpd"
λconfig, pkgs, …
true
"mod_fastcgi"
λnodes, …
import json
machine.wait_for_unit("phpfpm-web")
machine.wait_for_unit("lighttpd")
machine.wait_for_open_port(80)
got = json.loads(machine.succeed("curl -fsS http://127.0.0.1/"))
assert got == {
"version": "${nodes.machine.services.phpfpm.phpPackage.version}",
"method": "GET",
"name": None,
"sum": 5050,
}, got
got = json.loads(machine.succeed("curl -fsS -d name=fil-c http://127.0.0.1/index.php"))
assert got["method"] == "POST" and got["name"] == "fil-c", got