commit 9f144556c60f0450aba037ceaea9d49c43ef8fef parent 60e3ab89b10d59803ee710460863da0164228da6 Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 5 Sep 2023 17:06:02 +0200 Small tweaks Diffstat:
| M | nixos/common/lib/envoy.nix | | | 4 | ++-- |
| M | nixos/worker-1/configuration.nix | | | 17 | ----------------- |
2 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/nixos/common/lib/envoy.nix b/nixos/common/lib/envoy.nix @@ -9,7 +9,7 @@ address = { socket_address = { protocol = "TCP"; - address = "127.0.0.1"; + address = "0.0.0.0"; port_value = "9901"; }; }; @@ -110,7 +110,7 @@ clusters = [ { name = "postgres_cluster"; - connect_timeout = "0.5s"; + connect_timeout = "0.25s"; type = "STRICT_DNS"; lb_policy = "LEAST_REQUEST"; load_assignment = { diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -345,23 +345,6 @@ }; }; }; - # streamConfig = '' - # match server_ok { - # status 200; - # } - # upstream postgres { - # zone postgres 64k; - # server 10.100.0.2:5432; - # server 10.100.0.1:5432; - # } - # server { - # listen 127.0.0.1:5000 tcp; - # listen 100.64.0.1:5000 tcp; - # listen 10.100.12.1:5000 tcp; - # proxy_pass postgres; - # health_check port=8008 interval=3 fails=3 passes=2 mandatory persistent match=server_ok; - # } - # ''; }; discourse = {