From 47e097da8280a9ee1733f12464ff5da77d8378fa Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Tue, 29 Nov 2022 16:27:11 +0100 Subject: [PATCH] caddy fmt --- seafile-caddy/Caddyfile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/seafile-caddy/Caddyfile b/seafile-caddy/Caddyfile index fa04ac4..a74523d 100644 --- a/seafile-caddy/Caddyfile +++ b/seafile-caddy/Caddyfile @@ -1,24 +1,24 @@ { - auto_https disable_redirects + auto_https disable_redirects } 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 { - trusted_proxies private_ranges + 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 { + 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 } - } - 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