mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
nixos/acme: add extraLegoRunFlags option
This commit is contained in:
parent
a0189a4c49
commit
1719353619
@ -165,6 +165,14 @@ let
|
|||||||
Additional flags to pass to lego renew.
|
Additional flags to pass to lego renew.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraLegoRunFlags = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
Additional flags to pass to lego run.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -319,7 +327,7 @@ in
|
|||||||
++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)]
|
++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)]
|
||||||
++ data.extraLegoFlags;
|
++ data.extraLegoFlags;
|
||||||
certOpts = optionals data.ocspMustStaple [ "--must-staple" ];
|
certOpts = optionals data.ocspMustStaple [ "--must-staple" ];
|
||||||
runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts);
|
runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts ++ data.extraLegoRunFlags);
|
||||||
renewOpts = escapeShellArgs (globalOpts ++
|
renewOpts = escapeShellArgs (globalOpts ++
|
||||||
[ "renew" "--days" (toString cfg.validMinDays) ] ++
|
[ "renew" "--days" (toString cfg.validMinDays) ] ++
|
||||||
certOpts ++ data.extraLegoRenewFlags);
|
certOpts ++ data.extraLegoRenewFlags);
|
||||||
|
Loading…
Reference in New Issue
Block a user