nixosTests.caddy: update to v2
- Update configuration syntax - Add filalex77 as a maintainer
This commit is contained in:
parent
d71cadacd9
commit
06d2d84519
|
@ -1,7 +1,7 @@
|
||||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
name = "caddy";
|
name = "caddy";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ xfix ];
|
maintainers = [ xfix filalex77 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
|
@ -9,9 +9,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
services.caddy.enable = true;
|
services.caddy.enable = true;
|
||||||
services.caddy.config = ''
|
services.caddy.config = ''
|
||||||
http://localhost {
|
http://localhost {
|
||||||
gzip
|
encode gzip
|
||||||
|
|
||||||
root ${
|
root * ${
|
||||||
pkgs.runCommand "testdir" {} ''
|
pkgs.runCommand "testdir" {} ''
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
echo hello world > "$out/example.html"
|
echo hello world > "$out/example.html"
|
||||||
|
@ -23,9 +23,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
specialisation.etag.configuration = {
|
specialisation.etag.configuration = {
|
||||||
services.caddy.config = lib.mkForce ''
|
services.caddy.config = lib.mkForce ''
|
||||||
http://localhost {
|
http://localhost {
|
||||||
gzip
|
encode gzip
|
||||||
|
|
||||||
root ${
|
root * ${
|
||||||
pkgs.runCommand "testdir2" {} ''
|
pkgs.runCommand "testdir2" {} ''
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
echo changed > "$out/example.html"
|
echo changed > "$out/example.html"
|
||||||
|
|
Loading…
Reference in New Issue