2 nginxRoot = "/run/nginx";
4 import ./make-test-python.nix ({...}: {
8 networking.firewall.allowedTCPPorts = [ 80 ];
9 systemd.services.nginx = {
12 echo "Hello world!" > ${nginxRoot}/hello-world.txt
18 virtualHosts.server = {
19 locations."/".root = nginxRoot;
25 networking.firewall.allowedTCPPorts = [ 80 ];
45 params.proto = "http/1.1";
57 webserver.wait_for_open_port(80)
58 proxy.wait_for_open_port(80)
59 client.wait_until_succeeds("curl -s --fail http://proxy/hello-world.txt")