From f0a8835d8c7fb8133f9299d02a0327748b2126a2 Mon Sep 17 00:00:00 2001 From: Caddy on hubris Date: Tue, 12 May 2026 18:57:57 +0200 Subject: [PATCH] Route /thumbnail/* on files.hubris.network to Seafile Pro thumbnail-server (LXC 125:8081) --- Caddyfile | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/Caddyfile b/Caddyfile index 57e69e5..c941b69 100644 --- a/Caddyfile +++ b/Caddyfile @@ -184,22 +184,38 @@ files.hubris.network { request_body { max_size 10GB } - reverse_proxy 192.168.8.185:80 { - header_up X-Forwarded-Proto https - header_up X-Forwarded-Host {host} - header_up Host {host} - # Seafile iOS Pro app (>=4.0) speaks the IETF Resumable Uploads draft; - # the bundled seafile-fileserver does not. Strip the negotiation headers - # so the client falls back to a normal multipart upload. - header_up -Upload-Draft-Interop-Version - header_up -Upload-Complete - header_up -Upload-Offset - header_up -Upload-Length - transport http { - dial_timeout 30s - read_timeout 1h - write_timeout 1h + # /thumbnail/* served by the Pro thumbnail-server (LXC 125 port 8081). + @thumb path /thumbnail/* + handle @thumb { + reverse_proxy 192.168.8.185:8081 { + header_up X-Forwarded-Proto https + header_up X-Forwarded-Host {host} + header_up Host {host} + transport http { + dial_timeout 30s + read_timeout 1h + write_timeout 1h + } + } + } + handle { + reverse_proxy 192.168.8.185:80 { + header_up X-Forwarded-Proto https + header_up X-Forwarded-Host {host} + header_up Host {host} + # Seafile iOS Pro app (>=4.0) speaks the IETF Resumable Uploads draft; + # the bundled seafile-fileserver does not. Strip the negotiation headers + # so the client falls back to a normal multipart upload. + header_up -Upload-Draft-Interop-Version + header_up -Upload-Complete + header_up -Upload-Offset + header_up -Upload-Length + transport http { + dial_timeout 30s + read_timeout 1h + write_timeout 1h + } + flush_interval -1 } - flush_interval -1 } }