diff options
author | Dan Peebles <pumpkin@me.com> | 2018-03-21 12:58:19 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2018-03-21 12:58:25 -0400 |
commit | 6fa9d9cdbde0e7a9ca418fb100aa2e8a350121de (patch) | |
tree | 7e377cc3730ef308a3af3ced2b925aea444b6025 /nixos | |
parent | bacb2e216e353192294296f6bb5daa09d0a13bd0 (diff) |
hologram-server module: add cache timeout option
The version of hologram we're using has supported this option for a while, but we didn't expose it through the NixOS module
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/hologram-server.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/services/security/hologram-server.nix b/nixos/modules/services/security/hologram-server.nix index bb56e2df09b7f..bad02c7440bac 100644 --- a/nixos/modules/services/security/hologram-server.nix +++ b/nixos/modules/services/security/hologram-server.nix @@ -23,8 +23,9 @@ let account = cfg.awsAccount; defaultrole = cfg.awsDefaultRole; }; - stats = cfg.statsAddress; - listen = cfg.listenAddress; + stats = cfg.statsAddress; + listen = cfg.listenAddress; + cachetimeout = cfg.cacheTimeoutSeconds; }); in { options = { @@ -106,6 +107,12 @@ in { default = ""; description = "Address of statsd server"; }; + + cacheTimeoutSeconds = mkOption { + type = types.int; + default = 3600; + description = "How often (in seconds) to refresh the LDAP cache"; + }; }; }; |