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:
parent
c508e400a2
commit
daae9ed045
1 changed files with 3 additions and 3 deletions
|
@ -214,13 +214,13 @@ backend authentik_ldap
|
||||||
server s2 authentik-ldap-2:3389 check inter 10s
|
server s2 authentik-ldap-2:3389 check inter 10s
|
||||||
|
|
||||||
backend nextcloud
|
backend nextcloud
|
||||||
|
balance source
|
||||||
mode http
|
mode http
|
||||||
option httpchk
|
option httpchk
|
||||||
http-check send meth GET uri /status.php hdr Host nc.comfycamp.space
|
http-check send meth GET uri /status.php hdr Host nc.comfycamp.space
|
||||||
http-check expect status 200
|
http-check expect status 200
|
||||||
cookie SERVER insert indirect nocache
|
server s1 nextcloud-1:80 check inter 15s
|
||||||
server s1 nextcloud-1:80 check inter 15s cookie s1
|
server s2 nextcloud-2:80 check inter 15s
|
||||||
server s2 nextcloud-2:80 check inter 15s cookie s2
|
|
||||||
|
|
||||||
backend mta_sts
|
backend mta_sts
|
||||||
mode http
|
mode http
|
||||||
|
|
Loading…
Reference in a new issue