From ef526699b4281500890fa9cb6f8622db30d50241 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sun, 22 Jan 2023 00:15:15 -0800 Subject: [PATCH] allow to add to haproxy globals and defaults --- haproxy/configcreator.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haproxy/configcreator.nix b/haproxy/configcreator.nix index 5fca7e8..e6ad573 100644 --- a/haproxy/configcreator.nix +++ b/haproxy/configcreator.nix @@ -324,6 +324,8 @@ in , stats ? null , debug ? false , sites ? {} + , globals ? {} + , defaults ? {} }: { global = { # Silence a warning issued by haproxy. Using 2048 @@ -339,7 +341,7 @@ in inherit plugins; setenv = globalEnvs; - }; + } // globals; defaults = { log = "global"; @@ -351,7 +353,7 @@ in server = "30s"; queue = "100s"; }; - }; + } // defaults; frontend = { http-to-https = {