summary refs log tree commit diff
path: root/nixos/tests/bittorrent.nix
diff options
context:
space:
mode:
authorJacek Galowicz <jacek@galowicz.de>2020-01-14 10:11:57 +0100
committerJacek Galowicz <jacek@galowicz.de>2020-01-14 10:11:57 +0100
commite1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e (patch)
treeb8607e09c200b408e8c0202294b9304b8738c626 /nixos/tests/bittorrent.nix
parent7f69fdd182ef28ae049417a2a41153640ac185c6 (diff)
downloadnixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar.gz
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar.bz2
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar.lz
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar.xz
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.tar.zst
nixpkgs-e1b1f5a484f8f28d6b700a1872b2bddbbf6bf50e.zip
nixosTests.bittorrent: Fix declarative httpd description
Diffstat (limited to 'nixos/tests/bittorrent.nix')
-rw-r--r--nixos/tests/bittorrent.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix
index e5be652c711..6889d4548b7 100644
--- a/nixos/tests/bittorrent.nix
+++ b/nixos/tests/bittorrent.nix
@@ -38,8 +38,12 @@ in
 
           # We need Apache on the tracker to serve the torrents.
           services.httpd.enable = true;
-          services.httpd.adminAddr = "foo@example.org";
-          services.httpd.documentRoot = "/tmp";
+          services.httpd.virtualHosts = {
+            "torrentserver.org" = {
+              adminAddr = "foo@example.org";
+              documentRoot = "/tmp";
+            };
+          };
 
           networking.firewall.enable = false;