diff --git a/Caddyfile b/Caddyfile index 77d0ccc..57e69e5 100644 --- a/Caddyfile +++ b/Caddyfile @@ -181,7 +181,6 @@ files.hubris.network { dns ionos {env.IONOS_AUTH_API_TOKEN} } encode zstd gzip - # Seafile desktop client uploads large files; bump the body cap. request_body { max_size 10GB } @@ -189,5 +188,18 @@ files.hubris.network { 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 } }