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