nix/pkgs/pomerium: add timeouts to policy
This commit is contained in:
parent
b3def9be96
commit
36577c5bba
1 changed files with 15 additions and 0 deletions
|
@ -540,6 +540,21 @@ in
|
|||
default = false;
|
||||
description = "If set, enables proxying of websocket connections. NOTE: global timeouts are not enforced, although the policy-specific timeout is still enforced.";
|
||||
};
|
||||
timeout_read = mkOption {
|
||||
type = with types; nullOr goDuration;
|
||||
default = null;
|
||||
description = "Sets the global read timeout (i.e. the time from when the connection is accepted to when the request body is fully read).";
|
||||
};
|
||||
timeout_write = mkOption {
|
||||
type = with types; nullOr goDuration;
|
||||
default = null;
|
||||
description = "Sets the global write timeout (i.e. the time from when the request body is read to the end of the response being written).";
|
||||
};
|
||||
timeout_idle = mkOption {
|
||||
type = with types; nullOr goDuration;
|
||||
default = null;
|
||||
description = "Sets the global idle timeout (i.e. the time an idle Keep-Alive connection will be kept).";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue