From c041fd7dd6d3d6fdec0284c4e79427b5e7f902e5 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Wed, 20 Jan 2021 01:10:22 +0100 Subject: [PATCH] add uri_strip to seafhttp, add path wildcards --- caddy/Caddyfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 6fc0685..8a7eb04 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -3,8 +3,11 @@ } http:// https:// { - reverse_proxy /* seafile:8000 - reverse_proxy /seafhttp seafile:8082 - reverse_proxy /seafdav seafile:8080 - reverse_proxy /media seahub-media:80 + reverse_proxy seafile:8000 + handle_path /seafhttp* { + uri strip_prefix seafhttp + reverse_proxy seafile:8082 + } + reverse_proxy /seafdav/* seafile:8080 + reverse_proxy /media/* seahub-media:80 } \ No newline at end of file