commit e6bf165ec18ef3ae0bda4dc7ecc4b2675e8d89d6 parent 9b0dcbfa9811208dfd1741210f1e9fdff024c475 Author: MTRNord <mtrnord1@gmail.com> Date: Mon, 4 Sep 2023 23:52:15 +0200 Fix ngninx Diffstat:
| M | nixos/worker-1/configuration.nix | | | 36 | ++++++++++++++++++------------------ |
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -344,27 +344,27 @@ }; }; }; - 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; - } - ''; + # 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; + # } + # ''; }; haproxy = { - enable = false; + enable = true; config = '' global maxconn 300