From 79f163cff51bc44870a4f074c2c4d60c7d969981 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Mon, 25 Jan 2021 15:11:26 +0100 Subject: [PATCH] use header X-Forwarded-For as hash instead of IP --- seafile-caddy/Caddyfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seafile-caddy/Caddyfile b/seafile-caddy/Caddyfile index 878a588..c2fac38 100644 --- a/seafile-caddy/Caddyfile +++ b/seafile-caddy/Caddyfile @@ -4,7 +4,7 @@ http:// https:// { reverse_proxy seahub:8000 { - lb_policy ip_hash + lb_policy header X-Forwarded-For } handle_path /seafhttp* { uri strip_prefix seafhttp @@ -12,6 +12,6 @@ http:// https:// { } reverse_proxy /seafdav/* seafile-server:8080 reverse_proxy /media/* seahub-media:80 { - lb_policy ip_hash + lb_policy header X-Forwarded-For } } \ No newline at end of file