Simplify nextcloud load balancing

Nextcloud with current settings gives errors when connecting to a random
server, so we need to select a specific server for the user.

Balancing by source IP should be enough.
This commit is contained in:
Ivan R. 2024-11-28 22:40:55 +05:00
parent c508e400a2
commit daae9ed045
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -214,13 +214,13 @@ backend authentik_ldap
server s2 authentik-ldap-2:3389 check inter 10s
backend nextcloud
balance source
mode http
option httpchk
http-check send meth GET uri /status.php hdr Host nc.comfycamp.space
http-check expect status 200
cookie SERVER insert indirect nocache
server s1 nextcloud-1:80 check inter 15s cookie s1
server s2 nextcloud-2:80 check inter 15s cookie s2
server s1 nextcloud-1:80 check inter 15s
server s2 nextcloud-2:80 check inter 15s
backend mta_sts
mode http