From 5b2eb482dfc9165b3af084ee7817146603374ce3 Mon Sep 17 00:00:00 2001 From: goeranh Date: Mon, 20 Apr 2026 10:24:30 +0200 Subject: [PATCH] formatting in proxy --- hosts/proxy/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/proxy/default.nix b/hosts/proxy/default.nix index 1d79967..b92bea6 100644 --- a/hosts/proxy/default.nix +++ b/hosts/proxy/default.nix @@ -222,10 +222,15 @@ prev // (builtins.foldl' ( val: vhost: - let - proxyProtocol = if self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [] then false else + let + proxyProtocol = + if + self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [ ] + then + false + else true; - in + in val // { "${vhost}" = { @@ -534,7 +539,9 @@ option tcpka # Enable server TCP keep-alive (Phase 4) timeout server 60s # Increase from 30s for long-lived HTTPS timeout connect 3s # Reduce from 5s (local network) - server ${name} ${value.dest}:${builtins.toString value.httpsPort} ${if value.sendProxy == true then "send-proxy-v2" else ""} check inter 3000 rise 2 fall 3 maxconn 5000 + server ${name} ${value.dest}:${builtins.toString value.httpsPort} ${ + if value.sendProxy == true then "send-proxy-v2" else "" + } check inter 3000 rise 2 fall 3 maxconn 5000 '' ) "" forwards}