From afe42c53d527ca4049ac7f4d52ffd364eeaad702 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Sat, 23 Jan 2021 13:57:33 +0100 Subject: [PATCH] caddy add ip hash based lb for frontend --- caddy/Caddyfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 5cfb7aa..878a588 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -3,11 +3,15 @@ } http:// https:// { - reverse_proxy seahub:8000 + reverse_proxy seahub:8000 { + lb_policy ip_hash + } handle_path /seafhttp* { uri strip_prefix seafhttp reverse_proxy seafile-server:8082 } reverse_proxy /seafdav/* seafile-server:8080 - reverse_proxy /media/* seahub-media:80 + reverse_proxy /media/* seahub-media:80 { + lb_policy ip_hash + } } \ No newline at end of file