nix/pkgs/pomerium: add timeouts to policy

This commit is contained in:
Luke Granger-Brown 2021-03-14 14:38:56 +00:00
parent b3def9be96
commit 36577c5bba

View file

@ -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).";
};
};
});
};