caddy: Add extraConfig option

This commit is contained in:
SebastianStork 2026-01-15 22:18:22 +01:00
parent 82844a3bb4
commit 2f246153d4
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -23,6 +23,7 @@ let
domain, domain,
port, port,
files, files,
extraConfig,
... ...
}: }:
lib.nameValuePair domain { lib.nameValuePair domain {
@ -43,6 +44,7 @@ let
encode encode
file_server file_server
'') '')
(lib.optionalString (extraConfig != null) extraConfig)
]; ];
}; };
in in
@ -73,6 +75,10 @@ in
type = lib.types.nullOr lib.types.path; type = lib.types.nullOr lib.types.path;
default = null; default = null;
}; };
extraConfig = lib.mkOption {
type = lib.types.nullOr lib.types.lines;
default = null;
};
}; };
} }
) )