From b9bf2a61e3ac9836ada01ae010d6322c76c498c8 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Tue, 29 Nov 2022 16:04:11 +0100 Subject: [PATCH] add trusted_proxies private_ranges (necessary for caddy 2.5.0+) --- seafile-caddy/Caddyfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/seafile-caddy/Caddyfile b/seafile-caddy/Caddyfile index 115322b..fa04ac4 100644 --- a/seafile-caddy/Caddyfile +++ b/seafile-caddy/Caddyfile @@ -5,15 +5,20 @@ http:// https:// { reverse_proxy seahub:8000 { lb_policy header X-Forwarded-For + trusted_proxies private_ranges } handle_path /seafhttp* { uri strip_prefix seafhttp - reverse_proxy seafile-server:8082 + reverse_proxy seafile-server:8082 { + trusted_proxies private_ranges + } } reverse_proxy /seafdav* seafile-server:8080 { header_up Destination https:// http:// + trusted_proxies private_ranges } reverse_proxy /media/* seahub-media:80 { lb_policy header X-Forwarded-For + trusted_proxies private_ranges } } \ No newline at end of file