Add haproxy/mmproxy combo

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-01 23:02:03 +00:00
parent ae66cfd854
commit a271e892c3
7 changed files with 101 additions and 41 deletions

View File

@@ -0,0 +1,26 @@
{ ... }:
{
# TODO: Some way to automatically configure?
services.haproxy = {
enable = true;
config = ''
global
maxconn 4096
defaults
mode tcp
timeout connect 5s
timeout client 30s
timeout server 30s
frontend http
bind *:80
bind *:443
default_backend main
backend main
server jupiter 10.0.0.2:80 send-proxy-v2
server jupiter_ssl 10.0.0.2:443 send-proxy-v2
'';
};
}