diff --git a/templates/haproxy.config b/templates/haproxy.config index f5a42f00..43ab5396 100755 --- a/templates/haproxy.config +++ b/templates/haproxy.config @@ -116,7 +116,21 @@ listen Gitea server 10.5.10.121 10.5.10.121:3000 cookie s1 check port 3000 server 10.5.10.122 10.5.10.122:3000 cookie s2 check port 3000 backup server 10.5.10.123 10.5.10.123:3000 cookie s3 check port 3000 backup - + +listen Nextcloud + bind *:3001 + mode tcp + timeout client 10800s + timeout server 10800s + # tcp-check expect string is\ running + balance leastconn + option tcp-check + # option allbackups + default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100 + cookie SERVERUSED insert indirect nocache + server 10.5.10.42 10.5.10.42:443 cookie s1 check port 443 send-proxy + server 10.5.10.43 10.5.10.43:443 cookie s2 check port 443 send-proxy backup + listen Maxscale_rw bind *:3309 mode tcp