From d9925fda7dcf811ef15d3e40f72dd9882a76e8a2 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Sat, 17 Jun 2023 10:37:09 +0200 Subject: [PATCH] seafile-caddy add proxy for notification path --- seafile-caddy/Caddyfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/seafile-caddy/Caddyfile b/seafile-caddy/Caddyfile index a74523d..177b739 100644 --- a/seafile-caddy/Caddyfile +++ b/seafile-caddy/Caddyfile @@ -7,15 +7,21 @@ http:// https:// { lb_policy header X-Forwarded-For trusted_proxies private_ranges } + reverse_proxy /seafdav* seafile-server:8080 { + header_up Destination https:// http:// + trusted_proxies private_ranges + } handle_path /seafhttp* { uri strip_prefix seafhttp reverse_proxy seafile-server:8082 { trusted_proxies private_ranges } } - reverse_proxy /seafdav* seafile-server:8080 { - header_up Destination https:// http:// - trusted_proxies private_ranges + handle_path /notification* { + uri strip_prefix notification + reverse_proxy seafile-server:8083 { + trusted_proxies private_ranges + } } reverse_proxy /media/* seahub-media:80 { lb_policy header X-Forwarded-For