mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
nixos/taskserver: Rename client.{allow,deny}
These values match against the client IDs only, so let's rename it to something that actually reflects that. Having client.cert in the same namespace also could lead to confusion, because the client.cert setting is for the *debugging* client only. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
04fa5dcdb8
commit
8b793d1916
@ -39,8 +39,8 @@ let
|
||||
|
||||
# client
|
||||
${mkConfLine "client.cert" cfg.client.cert}
|
||||
${mkConfLine "client.allow" cfg.client.allow}
|
||||
${mkConfLine "client.deny" cfg.client.deny}
|
||||
${mkConfLine "client.allow" cfg.allowedClientIDs}
|
||||
${mkConfLine "client.deny" cfg.disallowedClientIDs}
|
||||
|
||||
# server
|
||||
server = ${cfg.server.host}:${toString cfg.server.port}
|
||||
@ -196,9 +196,7 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
client = {
|
||||
|
||||
allow = mkOption {
|
||||
allowedClientIDs = mkOption {
|
||||
type = with types; loeOf (either (enum ["all" "none"]) str);
|
||||
default = [];
|
||||
example = [ "[Tt]ask [2-9]+" ];
|
||||
@ -212,16 +210,7 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
cert = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
Fully qualified path of the client cert. This is used by the
|
||||
<command>client</command> command.
|
||||
'';
|
||||
};
|
||||
|
||||
deny = mkOption {
|
||||
disallowedClientIDs = mkOption {
|
||||
type = with types; loeOf (either (enum ["all" "none"]) str);
|
||||
default = [];
|
||||
example = [ "[Tt]ask [2-9]+" ];
|
||||
@ -235,6 +224,13 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
client.cert = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
Fully qualified path of the client cert. This is used by the
|
||||
<command>client</command> command.
|
||||
'';
|
||||
};
|
||||
|
||||
server = {
|
||||
|
Loading…
Reference in New Issue
Block a user