summary refs log tree commit diff
path: root/nixos/tests/caddy.nix
diff options
context:
space:
mode:
authorOleksii Filonenko <brightone@protonmail.com>2020-05-08 09:39:24 +0000
committerSylvain Fankhauser <sylvain.fankhauser@liip.ch>2020-09-05 14:09:17 +0200
commit06d2d845190aa33013346d415271f9d045db91cf (patch)
tree8e2a947ac73ef3121b8dd7dcd2092af4de9b2368 /nixos/tests/caddy.nix
parentd71cadacd9bc67b0bd4dc207442a8edb5d492943 (diff)
downloadnixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar.gz
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar.bz2
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar.lz
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar.xz
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.tar.zst
nixpkgs-06d2d845190aa33013346d415271f9d045db91cf.zip
nixosTests.caddy: update to v2
- Update configuration syntax
- Add filalex77 as a maintainer
Diffstat (limited to 'nixos/tests/caddy.nix')
-rw-r--r--nixos/tests/caddy.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/tests/caddy.nix b/nixos/tests/caddy.nix
index 144d83179a1..e9a93df4f48 100644
--- a/nixos/tests/caddy.nix
+++ b/nixos/tests/caddy.nix
@@ -1,7 +1,7 @@
 import ./make-test-python.nix ({ pkgs, ... }: {
   name = "caddy";
   meta = with pkgs.stdenv.lib.maintainers; {
-    maintainers = [ xfix ];
+    maintainers = [ xfix filalex77 ];
   };
 
   nodes = {
@@ -9,9 +9,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
       services.caddy.enable = true;
       services.caddy.config = ''
         http://localhost {
-          gzip
+          encode gzip
 
-          root ${
+          root * ${
             pkgs.runCommand "testdir" {} ''
               mkdir "$out"
               echo hello world > "$out/example.html"
@@ -23,9 +23,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
       specialisation.etag.configuration = {
         services.caddy.config = lib.mkForce ''
           http://localhost {
-            gzip
+            encode gzip
 
-            root ${
+            root * ${
               pkgs.runCommand "testdir2" {} ''
                 mkdir "$out"
                 echo changed > "$out/example.html"